<?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 parse a field that has flat log text and in JSON format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298049#M56409</link>
    <description>&lt;P&gt;You should set &lt;CODE&gt;kv_mode = json&lt;/CODE&gt; in your &lt;CODE&gt;props.conf&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Don't forget to restart the Splunk service after &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 15:14:06 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2017-02-14T15:14:06Z</dc:date>
    <item>
      <title>How to parse a field that has flat log text and in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298047#M56407</link>
      <description>&lt;P&gt;Need some help here. I have the following event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Feb 14 14:40:01 10.64.61.104 {"protocol": {"protocol": "ip", "app": "http", "session_id": "CzbhnXwfgz1jyPljh", "event_status": "1", "headers_server": "AmazonS3", "transport": "TCP", "dest_port": "50320", "src_port": "80", "event_id": "58a316458a2056136296f1e1", "headers_user-agent": "EventMachine HttpClient", "headers_content-type": "application/zip", "ftype": "gzip", "fname": "cflinuxfs2", "sha256": "db1b2669c46e93c60058e7dd0629c7e609f07bb158e94c8ee0451d2e0774fe7f", "headers_uri": "/system.asv-pr.ice.predix.io-cc-droplets/buildpack_cache/bf/17/bf178b85-8904-4bb6-b022-418e80a28da4/cflinuxfs2?AWSAccessKeyId=cfservices&amp;amp;Signature=FGAHR74Jeg0CeKUSqIXT3rSNitw=&amp;amp;Expires=1487086672", "dest": "10.131.16.223", "timestamp": "2017-02-14 14:37:57.012000", "host": "storecf.gecis.io", "user": "UNKNOWN", "headers_host": "storecf.gecis.io", "md5": "7c6f3b66919b7b8927f684e6d8782489", "src": "10.64.37.22", "dvc": "vna-bv-nw02i"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to be able to parse out the JSON which should make it into key/value pairs if I am not mistaken. How is this accomplished?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:04:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298047#M56407</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-02-14T15:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field that has flat log text and in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298048#M56408</link>
      <description>&lt;P&gt;You can use following do this inline at search time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "^(\S+\s+){4}(?&amp;lt;json_data&amp;gt;.+)" | spath input=json_data
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298048#M56408</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-14T15:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field that has flat log text and in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298049#M56409</link>
      <description>&lt;P&gt;You should set &lt;CODE&gt;kv_mode = json&lt;/CODE&gt; in your &lt;CODE&gt;props.conf&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Don't forget to restart the Splunk service after &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298049#M56409</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-02-14T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a field that has flat log text and in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298050#M56410</link>
      <description>&lt;P&gt;How do I adapt that to my props and transforms?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-field-that-has-flat-log-text-and-in-JSON-format/m-p/298050#M56410</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2017-02-14T15:57:27Z</dc:date>
    </item>
  </channel>
</rss>

