<?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: Need help on TIME_FORMAT and TIME_PREFIX in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428090#M74989</link>
    <description>&lt;P&gt;hi @sathiyasun, &lt;/P&gt;

&lt;P&gt;Did the answer below solve your question? If yes, please click “Accept” directly below the answer to resolve the post. If not, please comment with more information if you are still having issues. Thanks!!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 21:47:27 GMT</pubDate>
    <dc:creator>mstjohn_splunk</dc:creator>
    <dc:date>2018-08-28T21:47:27Z</dc:date>
    <item>
      <title>Need help on TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428086#M74985</link>
      <description>&lt;P&gt;I have a props.comf that is not working for TIME_FORMAT and TIME_PREFIX for the below log structure. Trying to break the LINE_BREAK from the first line. Please help.&lt;/P&gt;

&lt;P&gt;Error when i try to upload the log: ( "Could not use strptime to parse timestamp from Token TOKEN = DD215569A74FB06F5BC0C966CF60AD86:2018-08-27 14:28:06,382 , Failed to parse timestamp defaulting to file modtime)&lt;/P&gt;

&lt;P&gt;Log:-&lt;/P&gt;

&lt;P&gt;INFO:SESSION TOKEN = DD215569A74FB06F5BC0C966CF60AD86:2018-08-27 14:28:06,382&lt;BR /&gt;
 INFO:REQUEST:2018-08-27 14:28:15,000&lt;BR /&gt;
 INFO:&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
 [ wsa:splunkalert:log ]&lt;BR /&gt;
 CHARSET=UTF-8&lt;BR /&gt;
 LINE_BREAKER=([\r\n]+)(\w+:\w+\s\w+\s=\s\w+:\d+-\d+-\d+\s\d+:\d+:\d+\,\d+)&lt;BR /&gt;
 MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;
 NO_BINARY_CHECK=1&lt;BR /&gt;
 SHOULD_LINEMERGE=false&lt;BR /&gt;
 TIME_FORMAT= %H-%m-%d %H:%M:%S,3N&lt;BR /&gt;
 TIME_PREFIX=\s&lt;BR /&gt;
 disabled=false&lt;BR /&gt;
 pulldown_type=true&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428086#M74985</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2020-09-29T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428087#M74986</link>
      <description>&lt;P&gt;Hi @sathiyasun,&lt;/P&gt;

&lt;P&gt;What is the timestamp in your sample data &lt;CODE&gt;:2018-08-27 14:28:06,382&lt;/CODE&gt; OR &lt;CODE&gt;2018-08-27 14:28:15,000&lt;/CODE&gt;? &lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 12:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428087#M74986</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-08-28T12:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428088#M74987</link>
      <description>&lt;P&gt;I think you need &lt;CODE&gt;TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N&lt;/CODE&gt;.&lt;BR /&gt;
The &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; setting should not be "\s" as none of the timestamps in your sample event are preceded by a space.  Perhaps &lt;CODE&gt;TIME_PREFIX = :&lt;/CODE&gt; will work.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 12:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428088#M74987</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-08-28T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428089#M74988</link>
      <description>&lt;P&gt;This is the  date &amp;amp;timestamp&lt;BR /&gt;
DD215569A74FB06F5BC0C966CF60AD86:2018-08-27 14:28:06,382&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 14:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428089#M74988</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2018-08-28T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428090#M74989</link>
      <description>&lt;P&gt;hi @sathiyasun, &lt;/P&gt;

&lt;P&gt;Did the answer below solve your question? If yes, please click “Accept” directly below the answer to resolve the post. If not, please comment with more information if you are still having issues. Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 21:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428090#M74989</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-08-28T21:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428091#M74990</link>
      <description>&lt;P&gt;I am assuming that you have multi line events in that case please try with &lt;CODE&gt;TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N&lt;/CODE&gt; , &lt;CODE&gt;TIME_PREFIX = ^(?s)(?:[^\:]*\:){2}&lt;/CODE&gt; and &lt;CODE&gt;SHOULD_LINEMERGE = true&lt;/CODE&gt; in props.conf on Indexer or Heavy forwarder whichever comes first from UF.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 13:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-TIME-FORMAT-and-TIME-PREFIX/m-p/428091#M74990</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-08-30T13:55:52Z</dc:date>
    </item>
  </channel>
</rss>

