I keep having issues where Splunk will remove the space after: field -
... which then messes up the query.
I edit the source and place one or two spaces between 'field' and '-' and which will then show correct output but then when I close the dashboard, it reverts back and removes the spaces to | field-
Am I missing something or is there a way to fix this issue? I suppose I could do a |fields
and list all the fields I want to keep but that shouldn't be the answer.
Any suggestions as to why this is occurring? I have several dashboards doing this.
What you'll want to do is use in place of space
change
field -
to be
field - 
please award point or accept answer if it works for your.
I had the same problem. The solution by @spammenot66 works for me, but only if this is typed into the source (xml) editor of a dashboard rather than the GUI.
I don't think issue is with Windows 7 as we also face similar issue. I expect that to be related to IE since this issue occurs when my co-worker (who prefers IE) edits the dashboard and spaces between fields - is removed.
Try changing to Google Chrome browser and see if you still get the issue.
Also maybe we both should open a ticket with Splunk on the issue, as so far I thought it was an issue only with my co-worker's machine.
I'm using Win7 with IE11.
I tried editing the XML directly myself to resolve the issue but that didn't work - well it works once and when I either exit the dashboard or hit 'refresh' in IE, it reverts back.
Yes, search head clustering is being used.
Have you tested in chrome or firefox and do you see the same issue there?
I don't have Windows 7, so I can't test. I suggest that you file a support ticket.
While I would like to blame Windows 7 and IE, I can't see how these products would edit an XML file. 🙂
So I wonder if the knowledge object replication has any effect...
What OS are you using? What browser? Is anyone editing the XML directly? Are you using saved searches or inline searches in your dashboards?
Is search head clustering in use?