<?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: One log contains multiple messages with same timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631093#M108171</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi thank you for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added these two line on props.conf on universal forwarder as well as search heads cluster. It seems like we are still getting same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="freddy_Guo_1-1676501707292.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23893i6687826C0804473A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="freddy_Guo_1-1676501707292.png" alt="freddy_Guo_1-1676501707292.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 22:55:31 GMT</pubDate>
    <dc:creator>freddy_Guo</dc:creator>
    <dc:date>2023-02-15T22:55:31Z</dc:date>
    <item>
      <title>Why does one log contains multiple messages with same timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630221#M108033</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;I was wondering if some one could please give me a hand on this. We have written a custom TA to extract logs from a log source.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Log messages example:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; INFO 09 Feb 14:31:53 [pool-3-thread-1] WebHandlerAPI - Received GET request at /api/monitor/logger from [IP ADDRESS]
 INFO 09 Feb 14:31:53 [pool-4-thread-1] WebHandlerAPI - Received GET request at /api/monitor/performance from [IP ADDRESS]
 INFO 09 Feb 14:31:53 [thread_check] threadMonitor - 15 threads running OK&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Props.conf&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;category = Application
disabled = false
pulldown_type = true
TIME_FORMAT = %d %b %T
TIME_PREFIX = \s+\w+\s+
MAX_TIMESTAMP_LOOKAHEAD = 20
EXTRACT-pdr_generic = (?:\s|)(?P&amp;lt;level&amp;gt;.*?)\s+(?P&amp;lt;timestamp&amp;gt;\d.*?)\s+\[(?P&amp;lt;message_type&amp;gt;.*?)\]\s+(?P&amp;lt;message&amp;gt;.*?)$&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be great if someone could please point out which part of the props.conf needs to be improved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 16:48:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630221#M108033</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-02-09T16:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: One log contains multiple messages with same timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630223#M108034</link>
      <description>&lt;P&gt;You are relying on later information in the log/regex to constrain what the earlier part of the regex extracts, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?P&amp;lt;timestamp&amp;gt;\d.*?)&lt;/LI-CODE&gt;&lt;P&gt;is extracting a digit then anything up to the next part of the log, you would be better specifying a better timestamp extraction (e.g. &lt;STRONG&gt;(?P&amp;lt;timestamp&amp;gt;\d+\s\w{3}\s\d+:\d+:\d+))&lt;/STRONG&gt; that extracts what the timestamp should look like rather than hoping you will get the next space+square bracket to stop the extraction.&lt;/P&gt;&lt;P&gt;In general using non-greedy wildcards (.*?) to capture up to the next constraint is a bad idea.&lt;/P&gt;&lt;P&gt;I wasn't sure what the actual problem is when you say 'same timestamp'. There's no reason why you can't have log messages with the same timestamp - that's normal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 05:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630223#M108034</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-02-09T05:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: One log contains multiple messages with same timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630228#M108035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I haven't been explained the question well.&amp;nbsp; If you see the screenshot below, the problem is that these logs are not breaking line properly. That's why I was thinking that it could be caused by props.conf.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6f9c4da1-0d68-4274-999c-acb485037452.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23797i697529B46CED7E5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6f9c4da1-0d68-4274-999c-acb485037452.jpg" alt="6f9c4da1-0d68-4274-999c-acb485037452.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8cde4c52-2bf3-4d51-b62f-b7ec9e97860a.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23798i350F1F675F124CDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8cde4c52-2bf3-4d51-b62f-b7ec9e97860a.jpg" alt="8cde4c52-2bf3-4d51-b62f-b7ec9e97860a.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 05:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630228#M108035</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-02-09T05:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: One log contains multiple messages with same timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630372#M108050</link>
      <description>&lt;P&gt;Add the following to props.comf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE_BREAKER = ([\r\n]+)
SHOULD_LINEMERGE = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LINE_BREAKER is the default, but you the default for merge is true, so Splunk appears to be merging your lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 00:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/630372#M108050</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-02-10T00:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: One log contains multiple messages with same timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631093#M108171</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi thank you for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added these two line on props.conf on universal forwarder as well as search heads cluster. It seems like we are still getting same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="freddy_Guo_1-1676501707292.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23893i6687826C0804473A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="freddy_Guo_1-1676501707292.png" alt="freddy_Guo_1-1676501707292.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 22:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631093#M108171</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-02-15T22:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: One log contains multiple messages with same timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631097#M108172</link>
      <description>&lt;P&gt;Line breaking is done at index time, so having it on the search head will not affect how the data is ingested, so props.conf needs to have the settings on the indexer. I am not totally sure if line breaking occurs on the UF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 23:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631097#M108172</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-02-15T23:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: One log contains multiple messages with same timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631098#M108173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's working after I deploy it onto the indexer cluster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 23:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631098#M108173</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-02-15T23:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: One log contains multiple messages with same timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631100#M108174</link>
      <description>&lt;P&gt;Clicked on the wrong post to reply, but yeah. It came to me mind a bit too late. lol.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 23:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-one-log-contains-multiple-messages-with-same-timestamp/m-p/631100#M108174</guid>
      <dc:creator>freddy_Guo</dc:creator>
      <dc:date>2023-02-15T23:21:44Z</dc:date>
    </item>
  </channel>
</rss>

