<?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 How to specify a specific field to use as time field while indexing json data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-a-specific-field-to-use-as-time-field-while/m-p/115531#M24159</link>
    <description>&lt;P&gt;I need to know how to specify to Splunk to pick a particular field in the data as Time while indexing the data. My data is in Json and looks like this: &lt;/P&gt;

&lt;P&gt;{"report_parameters":{"venue_id":"22","timezone":"UTC","start_date":"2015-05-18 05:10:00","end_date":"2015-05-18 05:19:59","report":"items","grouping":"product","sorting":"value","filter":false,"filter_id":false,"filter2":false,"filter_id2":false,"filter3":false,"filter_id3":false},"sales_summary":{"total_orders":"0","total_sales":null,"fees_collected":null,"total_tips":null,"tax_collected":null,"average_order_size":"0.00","total_items":"0"},"report_data":[]} &lt;/P&gt;

&lt;P&gt;All the data is in UTC. &lt;BR /&gt;
I want to use the start_date as the Time Column. &lt;/P&gt;

&lt;P&gt;We are using the TCP port input to push data to an index. &lt;/P&gt;

&lt;P&gt;If I need to make change in the props.conf file what would be change I would need to make.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:59:56 GMT</pubDate>
    <dc:creator>tdiestel</dc:creator>
    <dc:date>2020-09-28T19:59:56Z</dc:date>
    <item>
      <title>How to specify a specific field to use as time field while indexing json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-a-specific-field-to-use-as-time-field-while/m-p/115531#M24159</link>
      <description>&lt;P&gt;I need to know how to specify to Splunk to pick a particular field in the data as Time while indexing the data. My data is in Json and looks like this: &lt;/P&gt;

&lt;P&gt;{"report_parameters":{"venue_id":"22","timezone":"UTC","start_date":"2015-05-18 05:10:00","end_date":"2015-05-18 05:19:59","report":"items","grouping":"product","sorting":"value","filter":false,"filter_id":false,"filter2":false,"filter_id2":false,"filter3":false,"filter_id3":false},"sales_summary":{"total_orders":"0","total_sales":null,"fees_collected":null,"total_tips":null,"tax_collected":null,"average_order_size":"0.00","total_items":"0"},"report_data":[]} &lt;/P&gt;

&lt;P&gt;All the data is in UTC. &lt;BR /&gt;
I want to use the start_date as the Time Column. &lt;/P&gt;

&lt;P&gt;We are using the TCP port input to push data to an index. &lt;/P&gt;

&lt;P&gt;If I need to make change in the props.conf file what would be change I would need to make.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-a-specific-field-to-use-as-time-field-while/m-p/115531#M24159</guid>
      <dc:creator>tdiestel</dc:creator>
      <dc:date>2020-09-28T19:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a specific field to use as time field while indexing json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-a-specific-field-to-use-as-time-field-while/m-p/115532#M24160</link>
      <description>&lt;P&gt;@tdiestel You should try using  INDEXED_EXTRACTIONS = JSON in props.conf of your forwarder.&lt;/P&gt;

&lt;P&gt;see:&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/237933/how-to-configure-timestamp-recognition-for-json-da.html#answer-237936"&gt;http://answers.splunk.com/answers/237933/how-to-configure-timestamp-recognition-for-json-da.html#answer-237936&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 17:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-a-specific-field-to-use-as-time-field-while/m-p/115532#M24160</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2015-05-21T17:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a specific field to use as time field while indexing json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-a-specific-field-to-use-as-time-field-while/m-p/115533#M24161</link>
      <description>&lt;P&gt;As @rphillips said, you can use a configuration like this:&lt;/P&gt;

&lt;H4&gt;props.conf&lt;/H4&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourcetypeHere]
INDEXED_EXTRACTIONS = JSON
TIMESTAMP_FIELDS = end_date, timezone
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then put this on your forwarders and restart the Splunk instances and it should work.&lt;BR /&gt;
Yes, I deliberately used &lt;CODE&gt;end_date&lt;/CODE&gt; instead of &lt;CODE&gt;start_date&lt;/CODE&gt;.  Trust me: this &lt;EM&gt;definitely&lt;/EM&gt; is the correct choice.  If you need me to explain why, I will.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 00:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-a-specific-field-to-use-as-time-field-while/m-p/115533#M24161</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-07T00:38:03Z</dc:date>
    </item>
  </channel>
</rss>

