<?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: Why can't I set a new timestamp via props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303521#M57313</link>
    <description>&lt;P&gt;Can you try:&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD=10&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d&lt;BR /&gt;
TIME_PREFIX={\"\Date\":\"&lt;BR /&gt;
INDEXED_EXTRACTIONS=json&lt;BR /&gt;
KV_MODE=none&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:56:06 GMT</pubDate>
    <dc:creator>Azeemering</dc:creator>
    <dc:date>2020-09-29T18:56:06Z</dc:date>
    <item>
      <title>Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303518#M57310</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I have the following JSON and I would like to set the field "Date" as timestamp. Splunk is currently setting the date and time corresponding to when I index the data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;JSON

{"Date":"2018-02-26","Id commande":"L4512XXX","Type":"A","Quantité vendue":"1000","Support de vente":"Livre","Code pays":"FR","Référence":"REFXXX"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In order to set the field Date as timestamp, here is my configuration file :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf

[json_sourcetype]
KV_MODE = json
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = true
TRUNCATE = 0
TIME_PREFIX = Date":"
MAX_TIMESTAMP_LOOKAHEAD = 200 
TIME_FORMAT = %Y-%m-%d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it is not working at all, it stills takes the indexation date as if this config was not taken into account. Do you know where it could come from?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303518#M57310</guid>
      <dc:creator>Clovisa</dc:creator>
      <dc:date>2018-04-04T15:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303519#M57311</link>
      <description>&lt;P&gt;KV_MODE only applies at search time.  Use INDEXED_EXTRACTIONS at index-time.  Try these props.conf settings.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ json_sourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
INDEXED_EXTRACTIONS=json
KV_MODE=none
TIME_PREFIX=Date\":\"
TIME_FORMAT=%Y-%m-%d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303519#M57311</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T18:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303520#M57312</link>
      <description>&lt;P&gt;Hi @richgalloway, thanks for your answer. I tried your configuration but it is still not working as you can see in the screenshot.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://image.noelshack.com/fichiers/2018/14/4/1522913637-time.png" alt="Date not taken into account" /&gt;&lt;/P&gt;

&lt;P&gt;Could it come from somewhere else, in an other config file ?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303520#M57312</guid>
      <dc:creator>Clovisa</dc:creator>
      <dc:date>2018-04-05T07:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303521#M57313</link>
      <description>&lt;P&gt;Can you try:&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD=10&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d&lt;BR /&gt;
TIME_PREFIX={\"\Date\":\"&lt;BR /&gt;
INDEXED_EXTRACTIONS=json&lt;BR /&gt;
KV_MODE=none&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303521#M57313</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2020-09-29T18:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303522#M57314</link>
      <description>&lt;P&gt;It is still giving me as timestamp the indexation time ... I'll put below all the file parts that could have an impact on this, I'm necessarily doing something wrong somewhere ! Thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Request

curl -k  &lt;A href="http://splunk:8088/services/collector" target="test_blank"&gt;http://splunk:8088/services/collector&lt;/A&gt; -H "Authorization: Splunk &amp;lt;my_token&amp;gt;" -d '{"sourcetype": "json_sourcetype", "event": {&amp;lt;my_json&amp;gt;}}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf (/opt/splunk/etc/apps/splunk_httpinput/local/inputs.conf , because it is a HTTP data input)

[http]
disabled=0
port=8088
enableSSL=0

[http://Vente]
disabled = 0
index = sales
token = &amp;lt;my_token&amp;gt;
sourcetype = json_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;indexes.conf

[sales]
homePath = $SPLUNK_DB/sales/db
maxTotalDataSizeMB = 512000
enableDataIntegrityControl = 0
thawedPath = $SPLUNK_DB/sales/thaweddb
enableTsidxReduction = 0
coldPath = $SPLUNK_DB/sales/colddb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf

[json_sourcetype]
MAX_TIMESTAMP_LOOKAHEAD=10
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
TIME_FORMAT=%Y-%m-%d
TIME_PREFIX={\"\Date\"\:\"
INDEXED_EXTRACTIONS=json
KV_MODE=none
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 12:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303522#M57314</guid>
      <dc:creator>Clovisa</dc:creator>
      <dc:date>2018-04-05T12:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303523#M57315</link>
      <description>&lt;P&gt;Where did you deploy this props.conf? Index time configuration like setting the timestamp should be done on the indexers, or if any Heavy Forwarder is used before it reaches the indexer(s), it should go on the first Heavy Forwarder that processes the data.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 12:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303523#M57315</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-04-05T12:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303524#M57316</link>
      <description>&lt;P&gt;Don't escape the &lt;CODE&gt;D&lt;/CODE&gt;.  There's no need for the leading &lt;CODE&gt;{\"&lt;/CODE&gt;, either.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 12:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303524#M57316</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-04-05T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I set a new timestamp via props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303525#M57317</link>
      <description>&lt;P&gt;Sadly even without it, the result is the same !&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-I-set-a-new-timestamp-via-props-conf/m-p/303525#M57317</guid>
      <dc:creator>Clovisa</dc:creator>
      <dc:date>2018-04-05T13:04:19Z</dc:date>
    </item>
  </channel>
</rss>

