<?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: Different timestamp values for the same file indexed. in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504749#M2003</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/99982"&gt;@peterkn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you share a few lines of the csv?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk tries to get a time for each event / row. It seems that is uses a field that not really is a timestamp or fails to get the correct values from it. Maybe some number that could be interpreted as a unix/epoch timestamp.&lt;BR /&gt;&lt;BR /&gt;You have to tell Splunk where the timestamp is&amp;nbsp; and how to interprete it. Either in the UI or in props.conf.&lt;BR /&gt;=&amp;gt;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition" target="_self"&gt;Explained here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "current time" / time when indexing is the last option being used.&lt;BR /&gt;&lt;BR /&gt;If there is no timestamp, you could add one to each row with (e.g.) sed. If a script copies the file, it would be an easy enhancement.&lt;BR /&gt;Or you configure props.conf as decribed &lt;A href="https://community.splunk.com/t5/Getting-Data-In/Using-index-time-as-time-stamp/m-p/51464#M9877" target="_self"&gt;here&lt;/A&gt; to really use the current time/index time.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 07:56:21 GMT</pubDate>
    <dc:creator>rnowitzki</dc:creator>
    <dc:date>2020-06-17T07:56:21Z</dc:date>
    <item>
      <title>Different timestamp values for the same file indexed.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504717#M1994</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a data input (Directory Monitor) for /opt/splunk/data/test&lt;BR /&gt;&lt;BR /&gt;Everyday a new csv file is copy pasted in this directory, and Splunk would start indexing them.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However all rows in this csv file are indexed with different timestamp (_time) values. Eg the file has 3382 events indexed, but doing a&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=caseload host=XXXX source="/opt/splunk/data/test/testfile.csv" | stats count by _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would yield something like&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;_time&lt;/TD&gt;&lt;TD width="50%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;2015-04-17 04:56:49&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;2016-01-08 19:51:49&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;33&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;2016-01-18 12:20:09&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;11&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;2016-02-07 21:15:09&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;SPAN&gt;18&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;shouldn't it be all current time which is "2020-06-17 10:10:10" for instance, instead of various different timestamps, I'm thinking it is trying to find some value per row that represents a timestamp and parse it, but I don't even see any "2015-04-17" in those 22 rows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How do I make all the Directory Monitors to index each event using current timestamp?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 02:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504717#M1994</guid>
      <dc:creator>peterkn</dc:creator>
      <dc:date>2020-06-17T02:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Different timestamp values for the same file indexed.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504749#M2003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/99982"&gt;@peterkn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you share a few lines of the csv?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk tries to get a time for each event / row. It seems that is uses a field that not really is a timestamp or fails to get the correct values from it. Maybe some number that could be interpreted as a unix/epoch timestamp.&lt;BR /&gt;&lt;BR /&gt;You have to tell Splunk where the timestamp is&amp;nbsp; and how to interprete it. Either in the UI or in props.conf.&lt;BR /&gt;=&amp;gt;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition" target="_self"&gt;Explained here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "current time" / time when indexing is the last option being used.&lt;BR /&gt;&lt;BR /&gt;If there is no timestamp, you could add one to each row with (e.g.) sed. If a script copies the file, it would be an easy enhancement.&lt;BR /&gt;Or you configure props.conf as decribed &lt;A href="https://community.splunk.com/t5/Getting-Data-In/Using-index-time-as-time-stamp/m-p/51464#M9877" target="_self"&gt;here&lt;/A&gt; to really use the current time/index time.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 07:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504749#M2003</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-06-17T07:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Different timestamp values for the same file indexed.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504900#M2025</link>
      <description>&lt;P&gt;You're an absolute champion.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Due to the nature of the data in the file I'm not legally allowed to share it's content unfortunately.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For those who are interested, instead of modifying/creating props.conf, I changed the timestamp setting from when adding a new file to an index (Settings&amp;gt;Add Data&amp;gt;Upload), select the sourcetype (csv in my case), under Source Type there is a dropdown for Timestamp, my defaulted to "Automatic" so I changed it to "Current", upon clicking "Next" it will ask me to save, select yes, overwrite. This setting will apply to all input monitors, please make sure you restart Splunk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504900#M2025</guid>
      <dc:creator>peterkn</dc:creator>
      <dc:date>2020-06-18T06:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Different timestamp values for the same file indexed.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504907#M2026</link>
      <description>&lt;P&gt;You're welcome.&lt;BR /&gt;&lt;BR /&gt;And you actually changed props.conf with that, but using the UI instead of CLI/vi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Happy splunking.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 07:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Different-timestamp-values-for-the-same-file-indexed/m-p/504907#M2026</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-06-18T07:22:00Z</dc:date>
    </item>
  </channel>
</rss>

