<?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: Properly Extract Time from custom Data Set in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251376#M48385</link>
    <description>&lt;P&gt;Your time format is wrong. It should be uppercase Y for the year if it includes centuary&lt;/P&gt;

&lt;PRE&gt;
 TIME_FORMAT = %Y-%m-%d %H:%M:%S:%3N
&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/Commontimeformatvariables"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 13:58:56 GMT</pubDate>
    <dc:creator>pradeepkumarg</dc:creator>
    <dc:date>2015-10-01T13:58:56Z</dc:date>
    <item>
      <title>Properly Extract Time from custom Data Set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251375#M48384</link>
      <description>&lt;P&gt;Hello, I have the follow data set comprised of custom weblog output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-08-08 12:40:03:163 UserID="37" userGroup="helloworld1192" userRole="test82" commonName="insertnamehereagainandagain" certName="HENRY.T.WASHINGTON" ipAddress="192.168.1.83" userBrowser="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following in my Props.conf on the indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[customwebtest]
LINE_BREAKER = (\d{4}\S\d{2}\S\d{2}\s\d{2}\S\d{2}\S\d{2}\S\d{3})
SHOULD_LINEMERGE = false
CHECK_FOR_HEADER = false
MAX_TIMESTAMP_LOOKAHEAD = 23
TIME_PREFIX = ^
TIME_FORMAT = (%y-%m-%d %H:%M:%S:%3N)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Problem is in Splunk it's excluding the event timestamp and using the time at ingestion. What am I doing wrong here?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251375#M48384</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-10-01T13:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Properly Extract Time from custom Data Set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251376#M48385</link>
      <description>&lt;P&gt;Your time format is wrong. It should be uppercase Y for the year if it includes centuary&lt;/P&gt;

&lt;PRE&gt;
 TIME_FORMAT = %Y-%m-%d %H:%M:%S:%3N
&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/Commontimeformatvariables"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251376#M48385</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-10-01T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Properly Extract Time from custom Data Set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251377#M48386</link>
      <description>&lt;P&gt;The value of the LINE_BREAKER attribute is the event separator - characters that come between events.  Whatever matches the first capturing group is discarded.  If your log has one event per line then the default &lt;CODE&gt;LINE_BREAKER=\n&lt;/CODE&gt; should be sufficient.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251377#M48386</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T07:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Properly Extract Time from custom Data Set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251378#M48387</link>
      <description>&lt;P&gt;Remove your LINE_BREAKER and you should be fine.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Properly-Extract-Time-from-custom-Data-Set/m-p/251378#M48387</guid>
      <dc:creator>schose</dc:creator>
      <dc:date>2015-10-01T14:06:22Z</dc:date>
    </item>
  </channel>
</rss>

