<?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 not picking up timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/not-picking-up-timestamp/m-p/45621#M8566</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I added a feed (with some great help from this site), and it is working, except for the timestamp.  Each line begins with an epoch timestamp, and I configured Splunk to recognize it, but it's picking up the time that is gets processed. &lt;/P&gt;

&lt;P&gt;Input example:&lt;BR /&gt;
1377468000000|139036|NormalizedMemoryInfo|Free|226005684|Memory|testhost|Enhanced-MemoryPool: Processor 1001.1&lt;BR /&gt;
1377468000000|139036|NormalizedMemoryInfo|Utilization|29.881565745219028|Memory|testhost2|Enhanced-MemoryPool: Processor 1001.1&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[snmpinfo]&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 30 &lt;BR /&gt;
SHOULD_LINEMERGE = FALSE&lt;BR /&gt;
NO_BINARY_CHECK = 1 &lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
TIME_FORMAT =  %s&lt;BR /&gt;
TRANSFORMS-set = setnull,setparsing&lt;/P&gt;

&lt;P&gt;From what I read, the %s is for epoch time.  Each event should have a 5 minute interval, but it's appearing with the timestamp when it got processed. &lt;/P&gt;

&lt;P&gt;Also, it appears that the output mechanism doesn't always output a full line when writing. Is there any way to make sure it only pulls in entire events? I've seen half events show up. &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:38:46 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2020-09-28T14:38:46Z</dc:date>
    <item>
      <title>not picking up timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/not-picking-up-timestamp/m-p/45621#M8566</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I added a feed (with some great help from this site), and it is working, except for the timestamp.  Each line begins with an epoch timestamp, and I configured Splunk to recognize it, but it's picking up the time that is gets processed. &lt;/P&gt;

&lt;P&gt;Input example:&lt;BR /&gt;
1377468000000|139036|NormalizedMemoryInfo|Free|226005684|Memory|testhost|Enhanced-MemoryPool: Processor 1001.1&lt;BR /&gt;
1377468000000|139036|NormalizedMemoryInfo|Utilization|29.881565745219028|Memory|testhost2|Enhanced-MemoryPool: Processor 1001.1&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[snmpinfo]&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 30 &lt;BR /&gt;
SHOULD_LINEMERGE = FALSE&lt;BR /&gt;
NO_BINARY_CHECK = 1 &lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
TIME_FORMAT =  %s&lt;BR /&gt;
TRANSFORMS-set = setnull,setparsing&lt;/P&gt;

&lt;P&gt;From what I read, the %s is for epoch time.  Each event should have a 5 minute interval, but it's appearing with the timestamp when it got processed. &lt;/P&gt;

&lt;P&gt;Also, it appears that the output mechanism doesn't always output a full line when writing. Is there any way to make sure it only pulls in entire events? I've seen half events show up. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/not-picking-up-timestamp/m-p/45621#M8566</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-09-28T14:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: not picking up timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/not-picking-up-timestamp/m-p/45622#M8567</link>
      <description>&lt;P&gt;That's an epoch to milliseconds, you'll need  TIME_FORMAT = %s%3N.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2013 23:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/not-picking-up-timestamp/m-p/45622#M8567</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-08-25T23:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: not picking up timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/not-picking-up-timestamp/m-p/45623#M8568</link>
      <description>&lt;P&gt;In order to make sure that Splunk only indexes full events, you can try 2 solutions.&lt;/P&gt;

&lt;P&gt;One is to set the following value in your time_before_close in your inputs.conf:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;time_before_close = &lt;INTEGER&gt;&lt;BR /&gt;
* Modtime delta required before Splunk can close a file on EOF.&lt;BR /&gt;
* Tells the system not to close files that have been updated in past &lt;INTEGER&gt; seconds.&lt;BR /&gt;
* Defaults to 3.&lt;/INTEGER&gt;&lt;/INTEGER&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This will tell Splunk to wait a certain amount of seconds before it assumes that the event has completed.&lt;BR /&gt;
Another way is to use the LINE_BREAKER option in props.conf to tell Splunk what the end of a line of logging looks like. You'll have to be lucky enough that all your logfiles have a determinable ending. Remember that you can use PCRE here, so you can do a positive lookahead to the start of your next line as well to determine the ending of the previous line.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/not-picking-up-timestamp/m-p/45623#M8568</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2020-09-28T14:39:00Z</dc:date>
    </item>
  </channel>
</rss>

