<?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: How to extract Specific field and segregate the bunched eventslogs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/526204#M148518</link>
    <description>&lt;LI-CODE lang="markup"&gt;| spath input=event logEvents{}.message&lt;/LI-CODE&gt;&lt;P&gt;This assumes that event contains just the JSON format part of the log.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2020 10:08:48 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-10-23T10:08:48Z</dc:date>
    <item>
      <title>How to extract Specific field and segregate the bunched eventslogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/526064#M148485</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have logs coming from AWS,&lt;BR /&gt;first, I need to get just a message (which is an event) from the log&amp;nbsp;&lt;BR /&gt;Second, in some logs, we have multiple messages inside log events,&lt;BR /&gt;How I can just show&amp;nbsp;logEvents{}.message and segregate the messages from the logs?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample log is&lt;BR /&gt;&lt;BR /&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;FONT color="#3366FF"&gt;[-]&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;logEvents&lt;/SPAN&gt;: [&amp;nbsp;&lt;FONT color="#3366FF"&gt;[-]&lt;/FONT&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&lt;FONT color="#3366FF"&gt;[-]&lt;/FONT&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-3"&gt;&lt;SPAN class="key-name"&gt;id&lt;/SPAN&gt;: &lt;SPAN class="t string"&gt;123456789.....&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-3"&gt;&lt;SPAN class="key-name"&gt;message&lt;/SPAN&gt;: &lt;SPAN class="t string"&gt;{"Actual Log Event"}&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-3"&gt;&lt;SPAN class="key-name"&gt;timestamp&lt;/SPAN&gt;: &lt;SPAN class="t number"&gt;1601177009988&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&lt;FONT color="#3366FF"&gt;[-]&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ]&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;logGroup&lt;/SPAN&gt;: &lt;SPAN class="t string"&gt;CloudTrail&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;logStream&lt;/SPAN&gt;: &lt;SPAN class="t string"&gt;1234567890_CloudTrail_us-east-1&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;messageType&lt;/SPAN&gt;: &lt;SPAN class="t string"&gt;DATA_MESSAGE&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;owner&lt;/SPAN&gt;:&lt;SPAN class="t string"&gt;1234567890&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;subscriptionFilters&lt;/SPAN&gt;: [&amp;nbsp;&lt;FONT color="#3366FF"&gt;[-]&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ]&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 18:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/526064#M148485</guid>
      <dc:creator>john_snow</dc:creator>
      <dc:date>2020-10-22T18:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract Specific field and segregate the bunched eventslogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/526204#M148518</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath input=event logEvents{}.message&lt;/LI-CODE&gt;&lt;P&gt;This assumes that event contains just the JSON format part of the log.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 10:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/526204#M148518</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-23T10:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract Specific field and segregate the bunched eventslogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/529051#M149363</link>
      <description>&lt;P&gt;How I can separate messages from the nested log like in the below log I wanted to separate each message in a log event. We can have single or multiple meesga in a LogEven&lt;/P&gt;&lt;PRE&gt;{ [-] 
   logEvents: [ [-] 
     { [-] 
       id: 123456789..... 
       message: {"Actual Log Event"} 
       timestamp: 1601177009988 
     } 
     { [-]
       id: 123456789..... 
       message: {"Actual Log Event"} 
       timestamp: 1601177009988 
     } 
   ] 
   logGroup: CloudTrail 
   logStream: 1234567890_CloudTrail_us-east-1 
   messageType: DATA_MESSAGE 
   owner:1234567890 
   subscriptionFilters: [ [-]
   ] 
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Nov 2020 22:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/529051#M149363</guid>
      <dc:creator>john_snow</dc:creator>
      <dc:date>2020-11-11T22:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract Specific field and segregate the bunched eventslogs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/529109#M149384</link>
      <description>&lt;P&gt;First extract logEvents{}, then extract message from those. Something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath logEvents{} output=logEvents
| mvexpand logEvents
| spath input=logEvents message&lt;/LI-CODE&gt;&lt;P&gt;You may need the mvexpand to separate out the different messages.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 09:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-Specific-field-and-segregate-the-bunched/m-p/529109#M149384</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-12T09:55:11Z</dc:date>
    </item>
  </channel>
</rss>

