<?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 Why am I getting errors failing to parse a Unix timestamp with my current configuration? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126500#M26039</link>
    <description>&lt;P&gt;I have unix timestamp in my data file .&lt;/P&gt;

&lt;P&gt;review/time: &lt;STRONG&gt;1182816000&lt;/STRONG&gt;&lt;BR /&gt;
review/summary: Periwinkle...&lt;/P&gt;

&lt;P&gt;To parse this timestamp&lt;/P&gt;

&lt;P&gt;timestamp/format: &lt;STRONG&gt;"%+"&lt;/STRONG&gt;&lt;BR /&gt;
timestamp/prefix:  &lt;STRONG&gt;review/time:&lt;/STRONG&gt; &lt;BR /&gt;
lookahead: &lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;the error I am getting is "Could not use strptime to parse timestamp from &lt;STRONG&gt;"1182816000\/n"&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;I feel splunk is unable to find the end of the timestamp. And when I specific &lt;STRONG&gt;"\d+"&lt;/STRONG&gt; in prefix it fails.&lt;/P&gt;

&lt;P&gt;I am not sure weather the time stamp is unix. But it feels like unix.&lt;BR /&gt;
And splunk does recognize the time is &lt;STRONG&gt;6/25/2007 5pm&lt;/STRONG&gt; in the time column. Still  get the error strange &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 17 Nov 2014 20:26:38 GMT</pubDate>
    <dc:creator>akshaybahetii</dc:creator>
    <dc:date>2014-11-17T20:26:38Z</dc:date>
    <item>
      <title>Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126500#M26039</link>
      <description>&lt;P&gt;I have unix timestamp in my data file .&lt;/P&gt;

&lt;P&gt;review/time: &lt;STRONG&gt;1182816000&lt;/STRONG&gt;&lt;BR /&gt;
review/summary: Periwinkle...&lt;/P&gt;

&lt;P&gt;To parse this timestamp&lt;/P&gt;

&lt;P&gt;timestamp/format: &lt;STRONG&gt;"%+"&lt;/STRONG&gt;&lt;BR /&gt;
timestamp/prefix:  &lt;STRONG&gt;review/time:&lt;/STRONG&gt; &lt;BR /&gt;
lookahead: &lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;the error I am getting is "Could not use strptime to parse timestamp from &lt;STRONG&gt;"1182816000\/n"&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;I feel splunk is unable to find the end of the timestamp. And when I specific &lt;STRONG&gt;"\d+"&lt;/STRONG&gt; in prefix it fails.&lt;/P&gt;

&lt;P&gt;I am not sure weather the time stamp is unix. But it feels like unix.&lt;BR /&gt;
And splunk does recognize the time is &lt;STRONG&gt;6/25/2007 5pm&lt;/STRONG&gt; in the time column. Still  get the error strange &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 20:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126500#M26039</guid>
      <dc:creator>akshaybahetii</dc:creator>
      <dc:date>2014-11-17T20:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126501#M26040</link>
      <description>&lt;P&gt;Make sure you set &lt;CODE&gt;MAX_DAYS_AGO&lt;/CODE&gt; in props.conf to a value greater than 2700 to allow a timestamp older than 2700 days ago to be parsed and treated as "correct".&lt;/P&gt;

&lt;P&gt;Additionally, I believe you're looking for &lt;CODE&gt;%s&lt;/CODE&gt; rather than &lt;CODE&gt;"%+"&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 22:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126501#M26040</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-17T22:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126502#M26041</link>
      <description>&lt;P&gt;I have set MAX_DAYS_AGO = -1.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126502#M26041</guid>
      <dc:creator>akshaybahetii</dc:creator>
      <dc:date>2020-09-28T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126503#M26042</link>
      <description>&lt;P&gt;I just went ahead with the error and indexed data into splunk. Now it works fine. Still dint get the reason for the error. &lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 22:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126503#M26042</guid>
      <dc:creator>akshaybahetii</dc:creator>
      <dc:date>2014-11-17T22:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126504#M26043</link>
      <description>&lt;P&gt;Try &lt;STRONG&gt;%s&lt;/STRONG&gt; instead of &lt;STRONG&gt;%+&lt;/STRONG&gt;. I use that for a number of UNIX timestamp logs (like Nagios) and they work fine.&lt;/P&gt;

&lt;P&gt;If you have any characters before the timestamp on the line, be sure to include that in the count of characters if you use MAX_TIMESTAMP_LOOKAHEAD, and you may also need to use TIME_PREFIX. But these last two things are probably not going to matter if you don't have them, so only use them if you need to.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126504#M26043</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2020-09-28T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126505#M26044</link>
      <description>&lt;P&gt;It works "fine" because Splunk ignored your request to try and look for a lengthy human-readable timestamp including time zone and all that (ie &lt;CODE&gt;%+&lt;/CODE&gt;) and fell back to looking for the timestamp format itself.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 22:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126505#M26044</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-17T22:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126506#M26045</link>
      <description>&lt;P&gt;Thank you Martin for the help. It worked without any warning on converting "%+" to "%s".&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 02:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126506#M26045</guid>
      <dc:creator>akshaybahetii</dc:creator>
      <dc:date>2014-11-19T02:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors failing to parse a Unix timestamp with my current configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126507#M26046</link>
      <description>&lt;P&gt;Thank you cpetterborg for the help. It worked without any warning on converting "%+" to "%s" as you suggested.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 02:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-failing-to-parse-a-Unix-timestamp-with/m-p/126507#M26046</guid>
      <dc:creator>akshaybahetii</dc:creator>
      <dc:date>2014-11-19T02:10:09Z</dc:date>
    </item>
  </channel>
</rss>

