<?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 data into separate fields (from nested JSON, extracting additional fields using spath)? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-data-into-separate-fields-from-nested-JSON/m-p/465826#M80283</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;your search
| table details
| spath input=details
| rex field=message "sysinfo\":\"(?&amp;lt;sysinfos&amp;gt;.*})\""
| spath input=message
| rename sysinfos as sysinfo
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 May 2020 22:33:08 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-05-28T22:33:08Z</dc:date>
    <item>
      <title>How to extract data into separate fields (from nested JSON, extracting additional fields using spath)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-data-into-separate-fields-from-nested-JSON/m-p/465825#M80282</link>
      <description>&lt;P&gt;I have this data coming in:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{"endpointType":"MAC","appName":"Tracker","endpointId":"1d11dd05-a8a9-11e9-a74b-873869538d14","ip":"192.168.41.1","endpointName":"tess-mbp.lan","timestampUTC":"2020-05-27T17:07:49Z","userName":"john","type":"FileSystemObserver","hostname":"test.com","userItemId":"rm-71a7812d-9444-11e8-8e37-8b2186626e5a","clientIp":"11.212.222.240","host":"dev.test.com:192.168.48.5","userEmail":"john@test.com","details":"{\"message\":\"{\\\"type\\\":\\\"File\\\", \\\"action\\\":\\\"Renamed\\\", \\\"timestamp\\\":\\\"1590599269\\\", \\\"path\\\":\\\"/Users/john/Library/Application Support/Google/Chrome/Default/Service Worker/CacheStorage/eadf114e35641d8a14aa9648d8e1c01b4b3bb3f0/index.txt\\\", \\\"sysinfo\\\":\\\"{\\\"ItemRenamed\\\",\\\"ItemIsFile\\\"}\\\"}\"}","authType":"MEMBER_ENDPOINT","requestSignature":"POST_/v3/report","epochTime":"1590599269","user-agent":"RR Endpoint/ag-2.10.1.797 (Darwin; 19.4.0; x86_64; tests-mbp.lan; 78:4f:41:7e:e1:06)"}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Data from &lt;STRONG&gt;details&lt;/STRONG&gt; is not getting extracted. I need to get all data from details in separate fields, like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;type: File
action: Renamed
path: Users/john.........
sysinfo:
ItemRenamed:
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If someone could help, it would be very appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 01:06:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-data-into-separate-fields-from-nested-JSON/m-p/465825#M80282</guid>
      <dc:creator>alexsok</dc:creator>
      <dc:date>2020-06-07T01:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract data into separate fields (from nested JSON, extracting additional fields using spath)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-data-into-separate-fields-from-nested-JSON/m-p/465826#M80283</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your search
| table details
| spath input=details
| rex field=message "sysinfo\":\"(?&amp;lt;sysinfos&amp;gt;.*})\""
| spath input=message
| rename sysinfos as sysinfo
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 May 2020 22:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-data-into-separate-fields-from-nested-JSON/m-p/465826#M80283</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-28T22:33:08Z</dc:date>
    </item>
  </channel>
</rss>

