<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Prevent query autoformat from deleting empty lines in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Prevent-query-autoformat-from-deleting-empty-lines/m-p/472817#M133080</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| rename COMMENT as "my comment"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it's not any better.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 17:13:56 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2019-09-05T17:13:56Z</dc:date>
    <item>
      <title>Prevent query autoformat from deleting empty lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Prevent-query-autoformat-from-deleting-empty-lines/m-p/472816#M133079</link>
      <description>&lt;P&gt;It can enhance query readability to separate large queries into their logical components using  empty lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = events
`comment("find and filter events")`
| ...
| ...
| ...

`comment("derive statistics of type A")`
| ...
| ...

`comment("derive statistics of type B")`
| ...
| ...

`comment("sort and format the results")`
| ...
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the Splunk search's auto-format removes empty lines. I'd like to prevent that. Is there a way to retain all auto-format functionality EXCEPT for deleting empty lines?&lt;/P&gt;

&lt;P&gt;If that's impossible, I'd like to find the minimum "filler-text" which I could use to separate logical blocks of a search.&lt;BR /&gt;
Right now my only candidates are empty comments and noop. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`comment("")`
| noop
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Are there any better alternatives? I'm also suspicious that "noop" might not be benign.&lt;BR /&gt;
I'm using Splunk Enterprise 7.3.0&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 15:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Prevent-query-autoformat-from-deleting-empty-lines/m-p/472816#M133079</guid>
      <dc:creator>d_o_c</dc:creator>
      <dc:date>2019-09-05T15:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent query autoformat from deleting empty lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Prevent-query-autoformat-from-deleting-empty-lines/m-p/472817#M133080</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| rename COMMENT as "my comment"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it's not any better.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 17:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Prevent-query-autoformat-from-deleting-empty-lines/m-p/472817#M133080</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2019-09-05T17:13:56Z</dc:date>
    </item>
  </channel>
</rss>

