<?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 LINE_BREAKER,TIME_FORMAT and TIME_PREFIX in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-LINE-BREAKER-TIME-FORMAT-and-TIME-PREFIX/m-p/428921#M75146</link>
    <description>&lt;P&gt;Hi sathiyasun,&lt;/P&gt;

&lt;P&gt;just are few hints here:&lt;BR /&gt;
- the regex matches the line breaker, so that should not be the problem&lt;BR /&gt;
- did you place the &lt;CODE&gt;props.conf&lt;/CODE&gt; on the parsing instance (the first full Splunk instance that receives the events)?&lt;BR /&gt;
- did you restart Splunk after you applied the &lt;CODE&gt;props.conf&lt;/CODE&gt;?&lt;BR /&gt;
- Is the sourcetype name correct? The stanza match is case sensitive &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 20:28:41 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2018-08-28T20:28:41Z</dc:date>
    <item>
      <title>Need help on LINE_BREAKER,TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-LINE-BREAKER-TIME-FORMAT-and-TIME-PREFIX/m-p/428920#M75145</link>
      <description>&lt;P&gt;I have built a props.conf but when I upload the log file manually it works fine but when the app writes the log the line break is not working. Please advise how to make this props.conf working when the app writes log file.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Complete Log file:-&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO:SESSION TOKEN = A5BD11D7B2BB200B5FB893C120333044:2018-08-28 15:12:03,991
INFO:REQUEST:2018-08-28 15:12:08,456
INFO: version="1.0" encoding="UTF-8"?&amp;gt;



      &amp;lt;web:CreateRecord&amp;gt;
         &amp;lt;web:sessionToken&amp;gt;A5BD11D7B2BB200B5FB8C120333044&amp;lt;/web:sessionToken&amp;gt;
         &amp;lt;web:moduleId&amp;gt;433&amp;lt;/web:moduleId&amp;gt;
         &amp;lt;web:fieldValues&amp;gt;&amp;lt;Record&amp;gt;&amp;lt;Field id=&amp;amp;quot;17471&amp;amp;quot; value=&amp;amp;quot;sri_id&amp;amp;quot;/&amp;gt;&amp;lt;Field id=&amp;amp;quot;16109&amp;amp;quot; value=&amp;amp;quot;result.count=1&amp;amp;amp;#x3C;br /&amp;amp;amp;#x3E;result.index=amt&amp;amp;amp;#x3C;br /&amp;amp;amp;#x3E;result.sourcetype=AMT-n-AGA-SystemErr&amp;amp;quot;/&amp;gt;&amp;lt;Field id=&amp;amp;quot;16108&amp;amp;quot; value=&amp;amp;quot;##This is test Alert##  - Testing the Line breaking rule&amp;amp;quot;/&amp;gt;&amp;lt;Field id=&amp;amp;quot;17343&amp;amp;quot; value=&amp;amp;quot;15:12:03&amp;amp;quot;/&amp;gt;&amp;lt;Field id=&amp;amp;quot;25310&amp;amp;quot; value=&amp;amp;quot;85040&amp;amp;quot;/&amp;gt;&amp;lt;Field id=&amp;amp;quot;17339&amp;amp;quot; value=&amp;amp;quot;15:12:03&amp;amp;quot;/&amp;gt;&amp;lt;/Record&amp;gt;&amp;lt;/web:fieldValues&amp;gt;
      &amp;lt;/web:CreateRecord&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Line Break from this line(INFO:SESSION TOKEN = A5BD11D7B2BB200B5FB893C120333044:2018-08-28 15:12:03,991)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wsa]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(\w+\:\w+\s\w+\s\=\s\w+\:\d+\-\d+\-\d+\s\d+\:\d+\:\d+\,\d+)
NO_BINARY_CHECK = true
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
TIME_PREFIX = (?i)info\:session[^=]+\=[^:]+\:
pulldown_type = true
disabled = false
MAX_TIMESTAMP_LOOKAHEAD = 30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Aug 2018 19:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-LINE-BREAKER-TIME-FORMAT-and-TIME-PREFIX/m-p/428920#M75145</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2018-08-28T19:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on LINE_BREAKER,TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-LINE-BREAKER-TIME-FORMAT-and-TIME-PREFIX/m-p/428921#M75146</link>
      <description>&lt;P&gt;Hi sathiyasun,&lt;/P&gt;

&lt;P&gt;just are few hints here:&lt;BR /&gt;
- the regex matches the line breaker, so that should not be the problem&lt;BR /&gt;
- did you place the &lt;CODE&gt;props.conf&lt;/CODE&gt; on the parsing instance (the first full Splunk instance that receives the events)?&lt;BR /&gt;
- did you restart Splunk after you applied the &lt;CODE&gt;props.conf&lt;/CODE&gt;?&lt;BR /&gt;
- Is the sourcetype name correct? The stanza match is case sensitive &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 20:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-LINE-BREAKER-TIME-FORMAT-and-TIME-PREFIX/m-p/428921#M75146</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-08-28T20:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on LINE_BREAKER,TIME_FORMAT and TIME_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-LINE-BREAKER-TIME-FORMAT-and-TIME-PREFIX/m-p/428922#M75147</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wsa]
 SHOULD_LINEMERGE = false
 LINE_BREAKER = ([\r\n]+)(?=INFO:SESSION TOKEN \=)
 TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
 TIME_PREFIX = INFO:SESSION TOKEN \=[^\:]+\:
 MAX_TIMESTAMP_LOOKAHEAD = 23
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Points 2,3 and 4  from @MuS's comments apply here too.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 21:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-on-LINE-BREAKER-TIME-FORMAT-and-TIME-PREFIX/m-p/428922#M75147</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-28T21:26:31Z</dc:date>
    </item>
  </channel>
</rss>

