Splunk Search

How do I format Search Processing Language to align the pipes on the left side of the search bar?

Kyle_Jackson
Explorer

How do I format Search Processing Language (SPL) to align the pipes on the left side of the search bar (v 6.5.0)?

hard to read
index=_internal | eval ..... | convert ... | stats... | table ... | sort ...
vs
pretty print


index=_internal
| eval .....
| convert ...
| stats...
| table ...
| sort ...

0 Karma
1 Solution

cmerriman
Super Champion

cmerriman
Super Champion

http://docs.splunk.com/Documentation/Splunk/6.5.0/Search/Parsingsearches#Search_bar_shortcuts

On Linux or Windows use Ctrl + \
On Mac OSX use Command + \

gcusello
SplunkTrust
SplunkTrust

probably you are meaning

index=_internal 
| eval ..... 
| convert ... 
| stats... 
| table ... 
| sort ...

Every way in 6.5 version there is an indentation of all source's tags with the only exception of searches.
If you want to indent also searches (I usually do it!) you have to manually do it.
Fortunately from 6.5 indentation remains also if I enter in Panels search modify, instead in the previous version if you do this you lose indentation.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...