<?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: Own timestamp assignment not working in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Own-timestamp-assignment-not-working/m-p/335936#M925</link>
    <description>&lt;P&gt;Hi gokadroid,&lt;/P&gt;

&lt;P&gt;it was not clear for me, that it's possible to configure that in the gui. I created a sourcetype and configured all above. After that I deleted my index and recreated a new one (Think it is possible to keep the old index!? - But that was a faster solution for me.). Now all Events are indexed with the correct date.&lt;BR /&gt;
Also I can see the props.conf file now on the indexer (/opt/splunk/etc/apps/local) too. &lt;BR /&gt;
WOW! That's exactly what I need. Now it is possible to use the timepicker with date range. First I tried it with reformatting the _time value (  | eval epoch = strptime(date, "%Y-%m-%d") |  eval _time = epoch |) but that is not working with my time picker.&lt;BR /&gt;
MAX_DAYS_AGO is also very usefull for me. &lt;BR /&gt;
I thank you so much for that.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:43:50 GMT</pubDate>
    <dc:creator>outofheapspace</dc:creator>
    <dc:date>2020-09-29T13:43:50Z</dc:date>
    <item>
      <title>Own timestamp assignment not working</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Own-timestamp-assignment-not-working/m-p/335934#M923</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to use timechart to analyse historical data files. The (*.log) files are just generated and each looks like this:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;date = 1999-05-15&lt;BR /&gt;
data1 = x&lt;BR /&gt;
data2 = y&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Now I want that "_time" contains my own "date" field. I found the article &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/ConfigurePositionalTimestampExtraction" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/ConfigurePositionalTimestampExtraction&lt;/A&gt;&lt;BR /&gt;
but I have a problem to bring this to work.&lt;/P&gt;

&lt;P&gt;My environment: Forwarder (Windows 10), Indexer based on CentOS.&lt;BR /&gt;
I cannot find any active props.conf.&lt;/P&gt;

&lt;P&gt;I don't know if I need to place a props.conf in &lt;BR /&gt;
/opt/splunk/etc/system/local (indexer) or &lt;BR /&gt;
C:\Program Files\SplunkUniversalForwarder\etc\system\local (Forwarder)&lt;/P&gt;

&lt;P&gt;I tried both and created a new props.conf with the following:&lt;/P&gt;

&lt;P&gt;[host::FORWARDERHOSTNAME]&lt;BR /&gt;
TIME_PREFIX = date =&lt;BR /&gt;
TIME_FORMAT =&amp;nbsp;%Y-%m-%d&lt;/P&gt;

&lt;P&gt;And restarted all services. But the .log files I'm indexing will still be marked with a (_time) timestamp of import time (today) and not my historical date time (1999).&lt;/P&gt;

&lt;P&gt;Some ideas?&lt;BR /&gt;
Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Own-timestamp-assignment-not-working/m-p/335934#M923</guid>
      <dc:creator>outofheapspace</dc:creator>
      <dc:date>2020-09-29T13:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Own timestamp assignment not working</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Own-timestamp-assignment-not-working/m-p/335935#M924</link>
      <description>&lt;P&gt;How about trying this stanza to be put in your props.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = 
MAX_DAYS_AGO = 7300
NO_BINARY_CHECK = true
TIME_FORMAT = %Y-%m-%d
TIME_PREFIX = date =
category = Custom
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am attaching the jpg where I used some sample data locally and used additional &lt;CODE&gt;MAX_DAYS_AGO&lt;/CODE&gt; setting to make the dates in your sample data to parse correctly into &lt;CODE&gt;_time&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;MAX_DAYS_AGO = 7300&lt;/CODE&gt; is actually 20 years worth of days ignoring leap years (20*365). So if you think your data might have dates prior to that, choose this value accordingly. Let me know if this helped.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2791i640CA6DE2A67A84B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2017 05:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Own-timestamp-assignment-not-working/m-p/335935#M924</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-04-15T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Own timestamp assignment not working</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Own-timestamp-assignment-not-working/m-p/335936#M925</link>
      <description>&lt;P&gt;Hi gokadroid,&lt;/P&gt;

&lt;P&gt;it was not clear for me, that it's possible to configure that in the gui. I created a sourcetype and configured all above. After that I deleted my index and recreated a new one (Think it is possible to keep the old index!? - But that was a faster solution for me.). Now all Events are indexed with the correct date.&lt;BR /&gt;
Also I can see the props.conf file now on the indexer (/opt/splunk/etc/apps/local) too. &lt;BR /&gt;
WOW! That's exactly what I need. Now it is possible to use the timepicker with date range. First I tried it with reformatting the _time value (  | eval epoch = strptime(date, "%Y-%m-%d") |  eval _time = epoch |) but that is not working with my time picker.&lt;BR /&gt;
MAX_DAYS_AGO is also very usefull for me. &lt;BR /&gt;
I thank you so much for that.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Own-timestamp-assignment-not-working/m-p/335936#M925</guid>
      <dc:creator>outofheapspace</dc:creator>
      <dc:date>2020-09-29T13:43:50Z</dc:date>
    </item>
  </channel>
</rss>

