<?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: How to get system time for each events indexed file splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334118#M61779</link>
    <description>&lt;P&gt;Hello Nit123,&lt;/P&gt;

&lt;P&gt;i have used below props.conf, but still am not getting different timestamp for each events. &lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
KV_MODE = auto&lt;BR /&gt;
TIME_PREFIX=:\s|CREATION_DATETIME="|LAST_UPDATE_DATETIME="&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 14:22:00 GMT</pubDate>
    <dc:creator>snehalk</dc:creator>
    <dc:date>2020-09-29T14:22:00Z</dc:date>
    <item>
      <title>How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334114#M61775</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;I have text files where there is no datetime in it, but my required is need to get each line as one event with indexing time  ( that willbe system time).&lt;/P&gt;

&lt;P&gt;I have used below &lt;CODE&gt;props.conf&lt;/CODE&gt;  but still its having same  datetime for all the events in the file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
DATETIME_CONFIG = CURRENT
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That is one file is having 100 lines as events and for all of that it has same timestamp.&lt;/P&gt;

&lt;P&gt;Can any one help me where am going wrong&lt;/P&gt;

&lt;P&gt;Thanks you&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 09:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334114#M61775</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2017-06-02T09:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334115#M61776</link>
      <description>&lt;P&gt;use time.time() to mark each one event by its time of creation to Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 09:59:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334115#M61776</guid>
      <dc:creator>nit123</dc:creator>
      <dc:date>2017-06-02T09:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334116#M61777</link>
      <description>&lt;P&gt;Hello nit123,&lt;/P&gt;

&lt;P&gt;Thank you for response, where i need to use this attribute? in props.conf file?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 10:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334116#M61777</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2017-06-02T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334117#M61778</link>
      <description>&lt;P&gt;In the python script that pulls data into Splunk and ingests it to some index.&lt;BR /&gt;
The script will set value to CREATION_DATETIME and LAST_UPDATE_DATETIME in props.conf&lt;BR /&gt;
In prop.conf , have something like &lt;/P&gt;

&lt;P&gt;[StanzaName]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
KV_MODE = auto&lt;BR /&gt;
TIME_PREFIX=:\s|CREATION_DATETIME="|LAST_UPDATE_DATETIME="&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%&lt;/P&gt;

&lt;P&gt;If this information helps, reward points and accept answer. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334117#M61778</guid>
      <dc:creator>nit123</dc:creator>
      <dc:date>2020-09-29T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334118#M61779</link>
      <description>&lt;P&gt;Hello Nit123,&lt;/P&gt;

&lt;P&gt;i have used below props.conf, but still am not getting different timestamp for each events. &lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
KV_MODE = auto&lt;BR /&gt;
TIME_PREFIX=:\s|CREATION_DATETIME="|LAST_UPDATE_DATETIME="&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334118#M61779</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2020-09-29T14:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334119#M61780</link>
      <description>&lt;P&gt;Can you share the extract of your code for better understanding.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 11:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334119#M61780</guid>
      <dc:creator>nit123</dc:creator>
      <dc:date>2017-06-05T11:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334120#M61781</link>
      <description>&lt;P&gt;Hello Nit123,&lt;BR /&gt;
I have fixed length text files where there is no timestamp, and because of this Splunk by default adding 10000(say one file contain) events in one timestamp,&lt;BR /&gt;
 Is there any ways where i can atleast bundle 100 events ?  &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 07:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334120#M61781</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2017-06-07T07:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334121#M61782</link>
      <description>&lt;P&gt;I think that it cannot be achieved if your events do not have a timestamp in it.&lt;/P&gt;

&lt;P&gt;As best splunk can assign the current timestamp to the events (DATETIME_CONFIG = CURRENT), it will be the indextime timestamp of the time splunk read the events from the file (not necessarily the mod time of the file or the line in the file).&lt;BR /&gt;
As splunk will read them in a batch, several events will have the same timestamp.&lt;/P&gt;

&lt;P&gt;If you can change your application to write the timestamp in the event, it will be possible.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334121#M61782</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2017-06-07T19:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334122#M61783</link>
      <description>&lt;P&gt;You wanted to assign current time (time when Splunk sees/read the event) to be assigned as timestamp of the event, which it's doing correctly. Splunk has capacity to process multiple events at almost at the same time and they'll have same timestamp. What is your expected behivour?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 20:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334122#M61783</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-07T20:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get system time for each events indexed file splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334123#M61784</link>
      <description>&lt;P&gt;Hello somesoni2,&lt;/P&gt;

&lt;P&gt;Thanks for reply, Yes, as you mentioned its taking almost all the events at same time, and because of this the splunk search performance is not good and also am getting other error too, so because of this i though if splunk has at least each event in different timestamp, then it will resolve all other issues. Is there any way to achieve this?&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-system-time-for-each-events-indexed-file-splunk/m-p/334123#M61784</guid>
      <dc:creator>snehalk</dc:creator>
      <dc:date>2017-06-28T08:22:51Z</dc:date>
    </item>
  </channel>
</rss>

