<?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: How to edit props.conf to cope with two different time values in log file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-props-conf-to-cope-with-two-different-time-values-in/m-p/342345#M101416</link>
    <description>&lt;P&gt;try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE = ^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}[\s:]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Sep 2017 13:56:16 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-09-19T13:56:16Z</dc:date>
    <item>
      <title>How to edit props.conf to cope with two different time values in log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-props-conf-to-cope-with-two-different-time-values-in/m-p/342344#M101415</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have created an index and sourcetype for two logs files.&lt;BR /&gt;
I have set up my props.conf to extract the date/time and separate onto one line, however one of my logs has a colon after the time and it is not separating out correctly.&lt;/P&gt;

&lt;P&gt;see below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;19/09/2017     13:34:51.438 
2017-09-19 13:34:51.438683 [ptp1:pps--phc1(ens1f0/ens1f1)], last: 0, mean: 0, min: 2147483647, max: -2147483647, bad-period: 0, 
overflows: 0
19/09/2017 13:34:51.437 
2017-09-19 13:34:51.437853: warning: ptp ptp1: failed to receive Announce within 12.000 seconds
2017-09-19 13:34:51.437898: debug: ptp ptp1: state PTP_LISTENING 
2017-09-19 13:34:51.437911: debug: netRefreshIGMP
19/09/2017 13:34:50.823 
2017-09-19 13:34:50.823439 [phc0(ens1f0/ens1f1)-&amp;gt;system], offset: -8.875, freq-adj: -42949.984, in-sync: 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my props.conf file&lt;BR /&gt;
     [ptp_log]&lt;BR /&gt;
     SHOULD_LINEMERGE = true&lt;BR /&gt;
     BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
     BREAK_ONLY_BEFORE = ^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}\s&lt;BR /&gt;
     MAX_TIMESTAMP_LOOKAHEAD = 26&lt;BR /&gt;
     TIME_PREFIX = ^&lt;/P&gt;

&lt;P&gt;If I put a colon into regex it will miss the other log file.&lt;BR /&gt;
Is the only way to do this two sourcetypes?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-props-conf-to-cope-with-two-different-time-values-in/m-p/342344#M101415</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-29T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to cope with two different time values in log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-props-conf-to-cope-with-two-different-time-values-in/m-p/342345#M101416</link>
      <description>&lt;P&gt;try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE = ^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}[\s:]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2017 13:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-props-conf-to-cope-with-two-different-time-values-in/m-p/342345#M101416</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-19T13:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to cope with two different time values in log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-props-conf-to-cope-with-two-different-time-values-in/m-p/342346#M101417</link>
      <description>&lt;P&gt;worked a treat thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-props-conf-to-cope-with-two-different-time-values-in/m-p/342346#M101417</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2017-09-19T15:15:07Z</dc:date>
    </item>
  </channel>
</rss>

