<?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 event data that displays as JSON? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377291#M68284</link>
    <description>&lt;P&gt;Hi Surya, I already tried before many times using Extracted new fileds option with different delimiters, but &lt;STRONG&gt;it doesn't work&lt;/STRONG&gt;. It gives whole values in single field. eg :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field18

monitoringData: {"deliverableType":null,"docType":null,"acProgram":null,"docId":null,"revisionDate":null,"format":null,"entity":null,"customersRightStatus":null,"customersRightEventDate":null,"majorEvent":null,"emergency":null,"attachmentType":null,"attachmentIssueDate":null,"acknowledgment":null,"acknowledgmentDate":null,"productionOrder":null,"domain":null,"productKey":null,"itemId":"260_S1KD","onlineAvailabilityData":{"type":"SearchOnlineState","status":"Default","fromDate":1531506600000,"toDate":9223372036854775807},"acksStatus":null}    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to further extraction above field value.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jul 2018 05:33:30 GMT</pubDate>
    <dc:creator>dhirendra761</dc:creator>
    <dc:date>2018-07-29T05:33:30Z</dc:date>
    <item>
      <title>How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377283#M68276</link>
      <description>&lt;P&gt;After uploading local file, i found event name &lt;STRONG&gt;"monitoringData"&lt;/STRONG&gt; as &lt;EM&gt;{"deliverableType":"Manual","docType":"CSDBL","docId":"SSH","revisionDate":1532370600000,"format":"S1KD","attachmentType":null,"attachmentIssueDate":1532370600000,"acknowledgment":null,"acknowledgmentDate":null,"productionOrder":"SRDD","domain":null,"&lt;IMG src="https://community.splunk.com/storage/temp/253596-adns.png" alt="alt text" /&gt;,"onlineAvailabilityData":null}&lt;/EM&gt;&lt;BR /&gt;
I need to genrate event dig deep into " monitoringData"&lt;BR /&gt;
Required events like  &lt;STRONG&gt;majorEvent,deliverableType, onlineAvailabilityData, docType&lt;/STRONG&gt; and &lt;STRONG&gt;so- on.&lt;/STRONG&gt; &lt;BR /&gt;
Please suggest me. I am new in splunk.My file content below type of data:&lt;BR /&gt;
"monitoringData":"{\"deliverableType\":\"Manual\",\"docType\":\"CSDBL\",\"docId\":\"KKH\",\"revisionDate\":1532802600000,\"format\":\"S1KD\",\"attachmentIssueDate\":1532802600000,\"acknowledgment\":null,\"acknowledgmentDate\":null,\"productionOrder\":\"SRDD\",\"domain\":null,\",\"itemId\":\"259_S1KD\",\"onlineAvailabilityData\":null,\"acksStatus\":null}","startPublicationDate":"1532686970112","jobSourceId":"IM01-SRDD","status":"IN_PROGRESS","appEnv":"dev","appProduct":"1T40"}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:40:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377283#M68276</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2020-09-29T20:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377284#M68277</link>
      <description>&lt;P&gt;The &lt;CODE&gt;spath&lt;/CODE&gt; command enables you to extract information from structured data formats, JSON. The command stores this information in one or more fields. The command also highlights the syntax in the displayed events list. More info about &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Spath" target="_blank"&gt;spath&lt;/A&gt;.&lt;BR /&gt;
    your_search | spath input=monitoringData&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Alternatives to the spath command&lt;/STRONG&gt;&lt;BR /&gt;
If you are using autokv or index-time field extractions, the path extractions are performed for you at index time.&lt;/P&gt;

&lt;P&gt;You do not need to explicitly use the spath command to provide a path.&lt;/P&gt;

&lt;P&gt;If using indexed_extractions=JSON or using KV_MODE=JSON in the &lt;CODE&gt;props.conf&lt;/CODE&gt; file, then the spath command is not necessary to explicitly use.&lt;/P&gt;

&lt;P&gt;In your props.conf, add KV_MODE and restart splunk. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[adns]
KV_MODE=JSON
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if this doesn't help and I can provide you the regular expression.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377284#M68277</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2020-09-29T20:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377285#M68278</link>
      <description>&lt;P&gt;Hi Nittala,&lt;BR /&gt;
Thanks for answer.&lt;BR /&gt;
&lt;STRONG&gt;yes please provide me regular expression for the same&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Appreciated if you provide me step as well. like where i need to use the regex.(my understanding, it will be used in same props.conf.)&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 13:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377285#M68278</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2018-07-27T13:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377286#M68279</link>
      <description>&lt;P&gt;Sure. But can you give me the exact sample data. The reason I ask is, the sample data above and the data in your screenshot doesn't match. Use 'code sample' function (the one with 101010 or use ctrl+k option) to paste text as is.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377286#M68279</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-07-27T14:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377287#M68280</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;"tasknorm":"","monitoringData":"{\"deliverableType\":\"Manual\",\"docType\":\"CSDBL\",\"acProgram\":\"PA350 XWB\",\"docId\":\"KKH\",\"revisionDate\":1532802600000,\"format\":\"S1KD\",\"entity\":null,\"customersRightStatus\":null,\"customersRightEventDate\":null,\"majorEvent\":null,\"emergency\":null,\"attachmentType\":null,\"attachmentIssueDate\":1532802600000,\"acknowledgment\":null,\"acknowledgmentDate\":null,\"productionOrder\":\"SRDD\",\"domain\":null,\"productKey\":\"#[A350]#KKH#CSDBL##[PN1234]##\",\"itemId\":\"259_S1KD\",\"onlineAvailabilityData\":null,\"acksStatus\":null}","functionalKey":"CSDBL-S1KD-A350-KKH-28-Jul-2018","startPublicationDate":"1532686970112","jobSourceId":"IM01-SRDD","status":"IN_PROGRESS","appName":"ADNS-Taskman","appEnv":"dev","appProduct":"1T40"}
{"@timestamp":"2018-07-27T15:54:13.280+05:30","@version":1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377287#M68280</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2018-07-27T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377288#M68281</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/open?id=1lXOlodiRN87bF1mH_Sr4GD7qY9tR0rDW"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I have uploaded sample file. Please check thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377288#M68281</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2018-07-27T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377289#M68282</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/open?id=1lXOlodiRN87bF1mH_Sr4GD7qY9tR0rDW"&gt;https://drive.google.com/open?id=1lXOlodiRN87bF1mH_Sr4GD7qY9tR0rDW&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377289#M68282</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2018-07-27T15:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377290#M68283</link>
      <description>&lt;P&gt;Unfortunately, I can't access G-drive links due to security reasons at my work place. But, I will guide you through the steps to extract fields using &lt;CODE&gt;Interactive Field Extractor (IFX)&lt;/CODE&gt;. &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Access the field extractor: Click &lt;STRONG&gt;Extract New Fields&lt;/STRONG&gt; from the bottom of the fields sidebar.&lt;/LI&gt;
&lt;LI&gt;Select sample event: In the event list, select a sample event that has one or more values that you want to extract as fields and click next.&lt;/LI&gt;
&lt;LI&gt;Select Method: Click &lt;STRONG&gt;Delimiters&lt;/STRONG&gt; and use &lt;CODE&gt;,&lt;/CODE&gt; as the delimiter and click next.&lt;/LI&gt;
&lt;LI&gt;Rename fields: Click on fields that you want to rename and enter the desired field names. &lt;/LI&gt;
&lt;LI&gt;Validate your field extraction: Review the event list table to see which events match or fail to match the field extraction.&lt;/LI&gt;
&lt;LI&gt;Review and save: Here, name your extraction setting (ex. &lt;STRONG&gt;REPORT&lt;/STRONG&gt;-custom_json) and Set Permissions to &lt;STRONG&gt;App&lt;/STRONG&gt; to make this extraction available at app-level and click &lt;STRONG&gt;save&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;To manage the field extractions which you just created, please navigate to "Settings -&amp;gt; Fields -&amp;gt; Field Extractions".&lt;/P&gt;

&lt;P&gt;To have a look at the extraction in the back-end, navigate (thru CLI) to $SPLUNK_HOME/etc/apps/app_which_you_used_in_final_step/local/props.conf and transforms.conf&lt;/P&gt;

&lt;P&gt;Please review the &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/ExtractfieldsinteractivelywithIFX" target="_blank"&gt;docs&lt;/A&gt; if you're struck. HTH!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377290#M68283</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2020-09-29T20:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377291#M68284</link>
      <description>&lt;P&gt;Hi Surya, I already tried before many times using Extracted new fileds option with different delimiters, but &lt;STRONG&gt;it doesn't work&lt;/STRONG&gt;. It gives whole values in single field. eg :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field18

monitoringData: {"deliverableType":null,"docType":null,"acProgram":null,"docId":null,"revisionDate":null,"format":null,"entity":null,"customersRightStatus":null,"customersRightEventDate":null,"majorEvent":null,"emergency":null,"attachmentType":null,"attachmentIssueDate":null,"acknowledgment":null,"acknowledgmentDate":null,"productionOrder":null,"domain":null,"productKey":null,"itemId":"260_S1KD","onlineAvailabilityData":{"type":"SearchOnlineState","status":"Default","fromDate":1531506600000,"toDate":9223372036854775807},"acksStatus":null}    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to further extraction above field value.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2018 05:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377291#M68284</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2018-07-29T05:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377292#M68285</link>
      <description>&lt;P&gt;Hello @dhirendra761,&lt;/P&gt;

&lt;P&gt;Here you go. Add below settings in props.conf. &lt;/P&gt;

&lt;P&gt;To extract more fields, use/tweak the regex a little. For example, to extract &lt;CODE&gt;onlineAvailabilityData&lt;/CODE&gt; use, &lt;CODE&gt;EXTRACT-onlineAvailabilityData = \S+onlineAvailabilityData\\?\"?\:\\?\"?(?&amp;lt;onlineAvailabilityData&amp;gt;\w+)&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
EXTRACT-deliverableType = ^\S+deliverableType\\?\"?\:\\?\"?(?&amp;lt;deliverableType&amp;gt;\w+)
EXTRACT-docType = \S+docType\\?\"?\:\\?\"?(?&amp;lt;docType&amp;gt;\w+)
EXTRACT-docId = \S+docId\\?\"?\:\\?\"?(?&amp;lt;docId&amp;gt;\w+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Jul 2018 17:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377292#M68285</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-07-29T17:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event data that displays as JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377293#M68286</link>
      <description>&lt;P&gt;@nittaa_surya please check &lt;A href="https://answers.splunk.com/answers/676846/field-extraction-from-field.html"&gt;https://answers.splunk.com/answers/676846/field-extraction-from-field.html&lt;/A&gt;&lt;BR /&gt;
for more info&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 05:26:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-event-data-that-displays-as-JSON/m-p/377293#M68286</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2018-07-31T05:26:41Z</dc:date>
    </item>
  </channel>
</rss>

