<?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: JSON logs are being indexed in Splunk, but why are fields not parsed automatically unless I use the spath command in a search? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-logs-are-being-indexed-in-Splunk-but-why-are-fields-not/m-p/245227#M47411</link>
    <description>&lt;P&gt;Thanks, exactly what I needed!&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2015 13:47:04 GMT</pubDate>
    <dc:creator>anthonycopus</dc:creator>
    <dc:date>2015-12-04T13:47:04Z</dc:date>
    <item>
      <title>JSON logs are being indexed in Splunk, but why are fields not parsed automatically unless I use the spath command in a search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-logs-are-being-indexed-in-Splunk-but-why-are-fields-not/m-p/245225#M47409</link>
      <description>&lt;P&gt;I have some simple, correctly designed, JSON logs being sent to Splunk. &lt;/P&gt;

&lt;P&gt;However, Splunk is not automatically parsing the fields unless I add &lt;CODE&gt;| spath&lt;/CODE&gt; to the search. What configuration do I need to change so I could simply do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main event_name=demo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;instead of&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=main | spath | event_name=demo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 11:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-logs-are-being-indexed-in-Splunk-but-why-are-fields-not/m-p/245225#M47409</guid>
      <dc:creator>anthonycopus</dc:creator>
      <dc:date>2015-11-25T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSON logs are being indexed in Splunk, but why are fields not parsed automatically unless I use the spath command in a search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-logs-are-being-indexed-in-Splunk-but-why-are-fields-not/m-p/245226#M47410</link>
      <description>&lt;P&gt;Have you got KV_MODE=json in your props.conf for that sourcetype?&lt;/P&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-logs-are-being-indexed-in-Splunk-but-why-are-fields-not/m-p/245226#M47410</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-11-25T13:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: JSON logs are being indexed in Splunk, but why are fields not parsed automatically unless I use the spath command in a search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-logs-are-being-indexed-in-Splunk-but-why-are-fields-not/m-p/245227#M47411</link>
      <description>&lt;P&gt;Thanks, exactly what I needed!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 13:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-logs-are-being-indexed-in-Splunk-but-why-are-fields-not/m-p/245227#M47411</guid>
      <dc:creator>anthonycopus</dc:creator>
      <dc:date>2015-12-04T13:47:04Z</dc:date>
    </item>
  </channel>
</rss>

