<?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 splitting multiple event and display data using table in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splitting-multiple-event-and-display-data-using-table/m-p/444914#M77445</link>
    <description>&lt;P&gt;I have splitted my mixed log which contains both text and json  to table .&lt;BR /&gt;
For reference I have queried it as a table as shown below:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6720i112A248D64182B5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;and used the below query to extract the fields like splunkId,processId, processLogId&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=****source=****  | sort -time | fields _time _raw  
| eval data = replace(_raw,"}\n{","Processed SplunkLogger") | eval data = replace(data,"{"," ")     
| eval data = replace(data,"}"," ")  | eval data = split(data,"Processed SplunkLogger") 
| where like(data, "%levelIndicator='****'%") | mvexpand data  |  eval _raw=data | table splunkId,processId, processLogId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it doesn't returns anything, Can anyone please help me out with it.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 06:41:59 GMT</pubDate>
    <dc:creator>sjothi1</dc:creator>
    <dc:date>2019-03-20T06:41:59Z</dc:date>
    <item>
      <title>splitting multiple event and display data using table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splitting-multiple-event-and-display-data-using-table/m-p/444914#M77445</link>
      <description>&lt;P&gt;I have splitted my mixed log which contains both text and json  to table .&lt;BR /&gt;
For reference I have queried it as a table as shown below:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6720i112A248D64182B5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;and used the below query to extract the fields like splunkId,processId, processLogId&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=****source=****  | sort -time | fields _time _raw  
| eval data = replace(_raw,"}\n{","Processed SplunkLogger") | eval data = replace(data,"{"," ")     
| eval data = replace(data,"}"," ")  | eval data = split(data,"Processed SplunkLogger") 
| where like(data, "%levelIndicator='****'%") | mvexpand data  |  eval _raw=data | table splunkId,processId, processLogId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it doesn't returns anything, Can anyone please help me out with it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 06:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splitting-multiple-event-and-display-data-using-table/m-p/444914#M77445</guid>
      <dc:creator>sjothi1</dc:creator>
      <dc:date>2019-03-20T06:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: splitting multiple event and display data using table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splitting-multiple-event-and-display-data-using-table/m-p/444915#M77446</link>
      <description>&lt;P&gt;So, where to start.. First of all, you started with a &lt;CODE&gt;| fields _time _raw&lt;/CODE&gt;. Those fields are always included and cannot be exluced. Later however, you want to table fields that are not available anymore (splunkdId, processId, processLogId).&lt;BR /&gt;
Secondly, why do you have text and JSON both in the same sourcetype (it sounds like you do)? Why don't you split the events into different sourcetypes? If you're extracting JSON data, you won't need to access _raw anymore because JSON will extract fields for you.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 15:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splitting-multiple-event-and-display-data-using-table/m-p/444915#M77446</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-03-20T15:18:14Z</dc:date>
    </item>
  </channel>
</rss>

