<?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 Search time line break using REX in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519076#M146154</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help with search time line break for the following log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"audits":[{"id":"000","version":1,"modified":"2020-09-11T12:28:44.351897585Z","sortValues":null,"action":{"JobID":"97979779797","Name":"TA"},"user":"x","object":"Jobs","type":"w","identifier":"0h0hh0h0hh"},{"id":"879789","version":1,"modified":"2020-09-11T12:27:46.568076802Z","sortValues":null,"action":{"JobID":"0000000"},"user":"KKK","object":"Jobs","type":"delete","identifier":""},{"id":"90808","version":1,"modified":"2020-09-11T12:25:04.808661137Z","sortValues":null,"action":{"JobID":"9889808088","Name":"KA"},"user":"uy","object":"Jobs","type":"add","identifier":"9878979797"},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;I want to break the logs using&lt;U&gt;&lt;STRONG&gt; &lt;FONT&gt;{"id.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 14:16:30 GMT</pubDate>
    <dc:creator>Abskal</dc:creator>
    <dc:date>2020-09-11T14:16:30Z</dc:date>
    <item>
      <title>Search time line break using REX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519076#M146154</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help with search time line break for the following log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"audits":[{"id":"000","version":1,"modified":"2020-09-11T12:28:44.351897585Z","sortValues":null,"action":{"JobID":"97979779797","Name":"TA"},"user":"x","object":"Jobs","type":"w","identifier":"0h0hh0h0hh"},{"id":"879789","version":1,"modified":"2020-09-11T12:27:46.568076802Z","sortValues":null,"action":{"JobID":"0000000"},"user":"KKK","object":"Jobs","type":"delete","identifier":""},{"id":"90808","version":1,"modified":"2020-09-11T12:25:04.808661137Z","sortValues":null,"action":{"JobID":"9889808088","Name":"KA"},"user":"uy","object":"Jobs","type":"add","identifier":"9878979797"},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;I want to break the logs using&lt;U&gt;&lt;STRONG&gt; &lt;FONT&gt;{"id.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 14:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519076#M146154</guid>
      <dc:creator>Abskal</dc:creator>
      <dc:date>2020-09-11T14:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search time line break using REX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519099#M146159</link>
      <description>&lt;P&gt;Are you trying to get each audit as a separate event?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval event="{\"audits\":[{\"id\":\"000\",\"version\":1,\"modified\":\"2020-09-11T12:28:44.351897585Z\",\"sortValues\":null,\"action\":{\"JobID\":\"97979779797\",\"Name\":\"TA\"},\"user\":\"x\",\"object\":\"Jobs\",\"type\":\"w\",\"identifier\":\"0h0hh0h0hh\"},{\"id\":\"879789\",\"version\":1,\"modified\":\"2020-09-11T12:27:46.568076802Z\",\"sortValues\":null,\"action\":{\"JobID\":\"0000000\"},\"user\":\"KKK\",\"object\":\"Jobs\",\"type\":\"delete\",\"identifier\":\"\"},{\"id\":\"90808\",\"version\":1,\"modified\":\"2020-09-11T12:25:04.808661137Z\",\"sortValues\":null,\"action\":{\"JobID\":\"9889808088\",\"Name\":\"KA\"},\"user\":\"uy\",\"object\":\"Jobs\",\"type\":\"add\",\"identifier\":\"9878979797\"}]}"
| spath input=event path=audits{}
| rename audits{} as audits
| mvexpand audits
| fields audits
| fields - _time&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Sep 2020 15:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519099#M146159</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-11T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Search time line break using REX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519107#M146160</link>
      <description>&lt;LI-SPOILER&gt;Thank you for your response, I am trying to do line&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;break after&amp;nbsp;&lt;STRONG&gt;&lt;STRONG&gt; &lt;SPAN&gt;{"id":&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;/STRONG&gt;, so that every entry that starts from &lt;STRONG&gt;"id":&lt;/STRONG&gt; should appear in new line.&amp;nbsp;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Fri, 11 Sep 2020 15:28:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519107#M146160</guid>
      <dc:creator>Abskal</dc:creator>
      <dc:date>2020-09-11T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search time line break using REX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519125#M146165</link>
      <description>&lt;P&gt;I am confused that what should be the "eval event="&amp;nbsp; ? here as I know the&amp;nbsp;&lt;SPAN&gt;field=_raw&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519125#M146165</guid>
      <dc:creator>Abskal</dc:creator>
      <dc:date>2020-09-11T16:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search time line break using REX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519131#M146167</link>
      <description>&lt;P&gt;eval event= is me just making some sample data - you can start with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... your search
| spath path=audits{}
| rename audits{} as audits
| mvexpand audits
| fields audits
| fields - _time&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519131#M146167</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-11T16:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search time line break using REX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519135#M146169</link>
      <description>&lt;P&gt;I tried the below query but no results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;index=test_logs&lt;BR /&gt;| spath path=audits{}&lt;BR /&gt;| rename audits{} as audits&lt;BR /&gt;| mvexpand audits&lt;BR /&gt;| fields audits&lt;BR /&gt;| fields - _time&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519135#M146169</guid>
      <dc:creator>Abskal</dc:creator>
      <dc:date>2020-09-11T16:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search time line break using REX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519141#M146172</link>
      <description>&lt;P&gt;Can you provide a couple of sample events?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=test_logs
| head 2&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Sep 2020 17:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-line-break-using-REX/m-p/519141#M146172</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-11T17:29:25Z</dc:date>
    </item>
  </channel>
</rss>

