At .conf this year, a new feature was showed off that allowed auto-formatting of SPL in the search bar with the press of a button in 6.5. It took a search from a single line:
index=myindex | stats count by action
| stats count by action
Does anyone know what the key is that accomplishes this?
So how about unformatting?
To get everything back into a single line.
This will solve the issue for people that use savedsearches.conf stanza's where formatted code copy pasted from splunk GUI will cause everything after the first PIPE to be ignored by the savedsearch configuration on the search head.
A similar question was asked by a customer who uses a Norwegian Keyboard (below):
There is a §| key above the Tab key (left of the 1) and that produces the \ character within Splunk.
Pressing Ctrl+§| enables Search Bar formatting in Splunk 6.5.x. This was confirmed to work by the customer.
That is the same physical location of the ^ character on a German T2 Keyboard
OMG I love you so much... I tried all the combinations on my German keyboard to get that feature to work, but this (completely unrelated) key combo works fine. Yeah! 😄