<?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: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48522#M9205</link>
    <description>&lt;P&gt;Hi MHibbin,&lt;/P&gt;

&lt;P&gt;Thnx for that. It is confirmed at datasource that milliseconds cannot be sent in syslog.&lt;/P&gt;

&lt;P&gt;So only other should be writing it in file, and then reading it.&lt;/P&gt;

&lt;P&gt;But is there anyway i could append the time of receipt at indexer as the event time, instaed of writing and reading from file.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2012 11:00:44 GMT</pubDate>
    <dc:creator>adityapavan18</dc:creator>
    <dc:date>2012-08-31T11:00:44Z</dc:date>
    <item>
      <title>Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48520#M9203</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am receiving a syslog feed from a server.I am trying to index that data. In syslog feed no milliseconds are being sent in feed.So event datetiime is of format 8/31/12 11:44:18*&lt;EM&gt;.000&lt;/EM&gt;* AM&lt;BR /&gt;
i.e milliseconds is always .000 for all events indexed.&lt;/P&gt;

&lt;P&gt;So while calculating duration after using transaction command if transaction happens in less than a second then the duration shows as O, which is claerly wrong.&lt;BR /&gt;
So is there a way i can append current date time with milliseconds when getting indexed, so that i get proper milliseconds feild also.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48520#M9203</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2020-09-28T12:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48521#M9204</link>
      <description>&lt;P&gt;As far as I'm aware, this would be something that you have to try and configure at the source (i.e. the syslog source), as adding milliseconds at Splunk's end would give inaccurate values as it would clearly not be the same time (even if you had the worlds fastest networks and systems it would still be different).&lt;/P&gt;

&lt;P&gt;It might be better to look at the data source for options, perhaps this is something that can configured if you ask the questions to the vendor or those in the know with the product. If not a possible solution for having some difference at the millisecond level...&lt;/P&gt;

&lt;P&gt;You could possible write the syslog to file and have a date inserted into the file before/after each log. Although this would probably be different to the actual syslog time, it may give you the accurate difference... you could then use this as you index time, and extract the actual time as field for additional information when troubleshooting, etc.&lt;/P&gt;

&lt;P&gt;Just some thoughts,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 10:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48521#M9204</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-08-31T10:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48522#M9205</link>
      <description>&lt;P&gt;Hi MHibbin,&lt;/P&gt;

&lt;P&gt;Thnx for that. It is confirmed at datasource that milliseconds cannot be sent in syslog.&lt;/P&gt;

&lt;P&gt;So only other should be writing it in file, and then reading it.&lt;/P&gt;

&lt;P&gt;But is there anyway i could append the time of receipt at indexer as the event time, instaed of writing and reading from file.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 11:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48522#M9205</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2012-08-31T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48523#M9206</link>
      <description>&lt;P&gt;So you are indexing syslog straight to Splunk (i.e. allow Splunk to read on UDP 514)?&lt;/P&gt;

&lt;P&gt;Perhaps try looking at props.conf for your source/sourctype/host (whichever is more specific to your syslog data) use that as a stanza in props.conf and then use the "DATETIME_CONFIG = CURRENT" parameter, this may force that data type to index with the system time when being indexed. You can also use the "TIME_FORMAT" option to configure specific time format. See the link below for reference and examples.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48523#M9206</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2020-09-28T12:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48524#M9207</link>
      <description>&lt;P&gt;I would add that if you are monitoring that port directly with Splunk, best practise is to record to file first... ref: &lt;A href="http://wiki.splunk.com/Community:Best_Practice_For_Configuring_Syslog_Input"&gt;http://wiki.splunk.com/Community:Best_Practice_For_Configuring_Syslog_Input&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;NOTE Option 1&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 11:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48524#M9207</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-08-31T11:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48525#M9208</link>
      <description>&lt;P&gt;Well, I'd recommend that you investigate if this can be altered on the sending side. (I'm assuming that you send syslog straight into splunk, not via a syslog receiver that writes files to a directory monitored by splunk).&lt;/P&gt;

&lt;P&gt;If you actually are writing files to a file system monitored by splunk, perhaps you can force the syslog server to add an extra timestamp when writing the events to disk.&lt;/P&gt;

&lt;P&gt;Another option would be to use the &lt;CODE&gt;_indextime&lt;/CODE&gt;, which is the time the indexer stored the event in an index. Needless to say, the quality of that timestamp can vary, depending on network congestion, temporarily high load on the indexer etc etc. Also... I don't think _indextime stores sub-seconds... mm..forget that... or try yourself.&lt;/P&gt;

&lt;P&gt;If I remebmer correctly you cannot use &lt;CODE&gt;_indextime&lt;/CODE&gt; directly, but I guess something like;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | eval _time = _indextime | transaction blah blah | top duration etc etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 11:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48525#M9208</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-31T11:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48526#M9209</link>
      <description>&lt;P&gt;Damn! I realize that I'm more than a little bit late... spend too much time editing. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Well, at least it seems that we have the same thoughts.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 11:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48526#M9209</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-31T11:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48527#M9210</link>
      <description>&lt;P&gt;Well, your answer has better content... I didn't know about the _indextime field. So I've learnt something new... so I'll upvote for that!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 11:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48527#M9210</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-08-31T11:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48528#M9211</link>
      <description>&lt;P&gt;Thnx kristian. but _indextime also doesn't track milliseconds, so without those milliseconds, i am again back to square one, as milliseconds will always show .000 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 12:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48528#M9211</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2012-09-04T12:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48529#M9212</link>
      <description>&lt;P&gt;Hi MHibbin,&lt;BR /&gt;
Using TIME_FORMAT hw can i pick milliseconds, can you please elaborate on that...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 12:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48529#M9212</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2012-09-04T12:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48530#M9213</link>
      <description>&lt;P&gt;Apologies I thought you could use milliseconds in strptime&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 12:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48530#M9213</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-09-04T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to append current time along with milliseconds to incoming syslog feed to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48531#M9214</link>
      <description>&lt;P&gt;You can use milliseconds in TIME_FORMAT - use %xN, where x is the number of digits of precision below second level. For example, %H:%M:%S.%3N for 10:23:45.447 - use of TIME_FORMAT of course requires the data to be in your event to begin with.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-anyway-to-append-current-time-along-with-milliseconds/m-p/48531#M9214</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2020-09-28T12:30:06Z</dc:date>
    </item>
  </channel>
</rss>

