<?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 regex the raw data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-the-raw-data/m-p/407364#M117658</link>
    <description>&lt;P&gt;For JSON type logs it is better to tell the source that is collecting logs that field extractions are of type JSON. On the source machine (or wherever you are ingesting logs from under &lt;CODE&gt;props.conf&lt;/CODE&gt; add this stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your:sourcetype]
TRUNCATE = 0
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
KV_MODE = JSON
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk will automatically extract all the fields for you and show you nicely highlighted in the _raw as well. &lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 23:48:13 GMT</pubDate>
    <dc:creator>nabeel652</dc:creator>
    <dc:date>2019-07-25T23:48:13Z</dc:date>
    <item>
      <title>How to regex the raw data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-the-raw-data/m-p/407363#M117657</link>
      <description>&lt;P&gt;hi all,&lt;BR /&gt;
I am trying to extract field from Splunk "extract more fields" feature, its not showing as the logs in events section, which is in json format.&lt;/P&gt;

&lt;P&gt;below is the sample log from which I need to extract or regex from field "id"="+779988663344" and "id" = 333222268888 numbers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Session-IngresslId": "999999999-9999999-999999999@SSS.com", "EgressId": "999999999-9999999-999999999@b.com",  "Accc-ll-Id": "", "Generic-Id": "", "Id": "+779988663344\" ;tag=7777777777-4444444444\"", "Id": "333222268888\" \""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;all events are in json format but when we are using field extractor I see all above kind of raw events.&lt;BR /&gt;
thanks for helping&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 22:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-the-raw-data/m-p/407363#M117657</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2019-07-25T22:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to regex the raw data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-the-raw-data/m-p/407364#M117658</link>
      <description>&lt;P&gt;For JSON type logs it is better to tell the source that is collecting logs that field extractions are of type JSON. On the source machine (or wherever you are ingesting logs from under &lt;CODE&gt;props.conf&lt;/CODE&gt; add this stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your:sourcetype]
TRUNCATE = 0
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
KV_MODE = JSON
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk will automatically extract all the fields for you and show you nicely highlighted in the _raw as well. &lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 23:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-the-raw-data/m-p/407364#M117658</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2019-07-25T23:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to regex the raw data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-the-raw-data/m-p/407365#M117659</link>
      <description>&lt;P&gt;thanks but got working using regex.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 18:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-the-raw-data/m-p/407365#M117659</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2019-07-26T18:16:20Z</dc:date>
    </item>
  </channel>
</rss>

