<?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: Need some help with FIELD_HEADER_REGEX and json data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606119#M105328</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/208244"&gt;@korstiaans&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I had a problem like your and I solved with SEDCMD:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-remove_header = s/\{\"activities\": \[\{\"kind\".*/\[\{\"kind\".*/flags&lt;/LI-CODE&gt;&lt;P&gt;But before this, did you tried the spath command?&lt;/P&gt;&lt;P&gt;I think that should solve your need..&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 09:48:05 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-07-19T09:48:05Z</dc:date>
    <item>
      <title>Need some help with FIELD_HEADER_REGEX and json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606118#M105327</link>
      <description>&lt;P&gt;Hi Splunkers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question related to a json file that I'm trying to parse.I want to remove the first part of it until {"kind"), see sample file is added below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the FIELD_REGEX_HEADER in props.conf which I think is supposed to that so far I've tried an failed with the following:&lt;/P&gt;&lt;P&gt;FIELD_HEADER_REGEX={"activities":\s\[(.)&lt;BR /&gt;FIELD_HEADER_REGEX={"activities":\s\[&lt;BR /&gt;FIELD_HEADER_REGEX={"activities":&lt;BR /&gt;FIELD_HEADER_REGEX=\{\"activities\"\:&lt;/P&gt;&lt;P&gt;Some of the above work on regexr.com with the sample data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"activities": [{"kind": "admin#reports#activity", "id": {"time": "&lt;/SPAN&gt;&lt;SPAN class=""&gt;2022-07-18T14:04:19.866Z&lt;/SPAN&gt;&lt;SPAN&gt;", "uniqueQualifier": "-2451221827967636314", "applicationName": "&lt;STRONG&gt;redacted&lt;/STRONG&gt;", "customerId": "&lt;STRONG&gt;redacted&lt;/STRONG&gt;"}, "etag": "\"dng2uCItaXPqmMj2MG4RUqVkRjnE_4kf0VvQ0_WkiTg/6j3Reg7FneLgLDfjE-lZuZUOrdc\"", "actor": {"callerType": "USER", "email": "&lt;STRONG&gt;redacted&lt;/STRONG&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;, "profileId": "&lt;STRONG&gt;redacted&lt;/STRONG&gt;"}, "ipAddress": "&lt;STRONG&gt;redacted&lt;/STRONG&gt;", "events": [{"type": "SECURITY_INVESTIGATION", "name": "SECURITY_INVESTIGATION_QUERY", "parameters": [{"name": "INVESTIGATION_DATA_SOURCE", "value": "USER LOG EVENTS"}, {"name": "INVESTIGATION_QUERY", "value": "(empty)"}]}]},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 09:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606118#M105327</guid>
      <dc:creator>korstiaans</dc:creator>
      <dc:date>2022-07-19T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with FIELD_HEADER_REGEX and json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606119#M105328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/208244"&gt;@korstiaans&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I had a problem like your and I solved with SEDCMD:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-remove_header = s/\{\"activities\": \[\{\"kind\".*/\[\{\"kind\".*/flags&lt;/LI-CODE&gt;&lt;P&gt;But before this, did you tried the spath command?&lt;/P&gt;&lt;P&gt;I think that should solve your need..&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 09:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606119#M105328</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-19T09:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with FIELD_HEADER_REGEX and json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606120#M105329</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;Thanks for the quick response, so it's only a problem for the first line I managed to split the other events and they are indexes as json so no need for spath.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try your SEDCMD suggestion and get back with the results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 09:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606120#M105329</guid>
      <dc:creator>korstiaans</dc:creator>
      <dc:date>2022-07-19T09:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with FIELD_HEADER_REGEX and json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606125#M105330</link>
      <description>&lt;P&gt;Unfortunately it didn't work for completeness sake I've added the props.conf I used.&lt;/P&gt;&lt;P&gt;[gws:test]&lt;BR /&gt;KV_MODE= json&lt;BR /&gt;LINE_BREAKER = }]},(.)&lt;BR /&gt;SEDCMD-remove_header =SEDCMD-remove_header = s/\{\"activities\": \[\{\"kind\".*/\[\{\"kind\".*/flags&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 10:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-FIELD-HEADER-REGEX-and-json-data/m-p/606125#M105330</guid>
      <dc:creator>korstiaans</dc:creator>
      <dc:date>2022-07-19T10:14:22Z</dc:date>
    </item>
  </channel>
</rss>

