<?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: Parsing not working as expected in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Parsing-not-working-as-expected/m-p/592555#M206243</link>
    <description>&lt;P&gt;Your TIME_PREFIX = ^ that means starting of the event, what you have highlighted is not being considered as _time for that reason.&lt;/P&gt;&lt;P&gt;When you set TIME_PREFIX alone, starting of the event is&amp;nbsp;&lt;SPAN&gt;4/5/2022 9:02 PM&amp;nbsp;assuming line_breaking is fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you should look at TIME_FORMAT and set the TIME_PREFIX correctly for the timestamp you want to consider for _time.&lt;BR /&gt;&lt;BR /&gt;The screenshot and events pasted looks completely different.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 03:16:32 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2022-04-06T03:16:32Z</dc:date>
    <item>
      <title>Parsing not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parsing-not-working-as-expected/m-p/592553#M206242</link>
      <description>&lt;P&gt;New to splunk, need your help.&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;4/5/2022 9:02 PM | Audit | hi user | something.MoveFiles | Copied File from C:\hello.txt to server/something.txt 4/5/2022 9:02 AM | Audit | hi user | something.MoveFiles | Copied File from D:\reportsSuccess\_CMS.txt to \\server_CMS.txt &lt;STRONG&gt;12/15/2022&lt;/STRONG&gt; 10:02 PM | Audit | hi user | something.MoveFiles | Copied File from D:\reportsSuccess\_CMS.txt to \\server_CMS.txt 4/4/2022 5:00 AM | Audit | hi user | FileSplitter.ProcessFiles | Started Processing : ID 4/4/2022 5:00 AM | Audit | hi user | FileSplitter.ProcessFiles | Started Processing 4/4/2022 5:00 AM | Audit | hi user | FileReader.FileReader | FileReader for D:\reportsInput\tsst.TXT initilized 4/4/2022 5:00 AM | Audit | hi user | something.something. 11/4/2022 5:00 AM | Audit | hi user | something.something. 10/4/2021 5:00 AM | Audit | hi user | something.something.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a508184_0-1649213303857.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18954iEA823F417AE31AB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a508184_0-1649213303857.png" alt="a508184_0-1649213303857.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;a508184_0-1649213303857.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12/15/2022 is taking as 2/15/22. Below is the props.conf am using it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SHOULD_LINEMERGE=true&lt;BR /&gt;LINE_BREAKER=([/r/n]*)[0-9]+\/[0-9]+\/\d{4}\s[0-9]+:[0-9]+\s[P|A]M&lt;BR /&gt;TZ=EST&lt;BR /&gt;TIME_PREFIX =^&lt;BR /&gt;BREAK_ONLY_BEFORE=[0-9]+\/[0-9]+\/\d{4}\s[0-9]+:[0-9]+\s[P|A]M&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you please help me to get the correct parsing?&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 02:52:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parsing-not-working-as-expected/m-p/592553#M206242</guid>
      <dc:creator>a508184</dc:creator>
      <dc:date>2022-04-06T02:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parsing-not-working-as-expected/m-p/592555#M206243</link>
      <description>&lt;P&gt;Your TIME_PREFIX = ^ that means starting of the event, what you have highlighted is not being considered as _time for that reason.&lt;/P&gt;&lt;P&gt;When you set TIME_PREFIX alone, starting of the event is&amp;nbsp;&lt;SPAN&gt;4/5/2022 9:02 PM&amp;nbsp;assuming line_breaking is fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you should look at TIME_FORMAT and set the TIME_PREFIX correctly for the timestamp you want to consider for _time.&lt;BR /&gt;&lt;BR /&gt;The screenshot and events pasted looks completely different.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 03:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parsing-not-working-as-expected/m-p/592555#M206243</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2022-04-06T03:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parsing-not-working-as-expected/m-p/592576#M206254</link>
      <description>&lt;P&gt;Using SHOULD_LINEMERGE=true is performance ineffective. Use the below configuration.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = ([\s\n\r]+)[0-9]+\/[0-9]+\/\d{4}\s[0-9]+:[0-9]+\s[P|A]M\s+
TZ = EST
TIME_PREFIX = ^
TIME_FORMAT = %m/%d/%Y %I:%M %p
MAX_TIMESTAMP_LOOKAHEAD = 25&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the looks of it from the data you pasted, it is not necessary to have all the events in a &lt;STRONG&gt;new line&lt;/STRONG&gt;. But if that is the case (each event in a new line) then updating the LINE_BREAKER below will improve performance and reduce the chances of incorrect line-breaking.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;([\n\r]+)[0-9]+\/[0-9]+\/\d{4}\s[0-9]+:[0-9]+\s[P|A]M\s+&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 06:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parsing-not-working-as-expected/m-p/592576#M206254</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-06T06:11:37Z</dc:date>
    </item>
  </channel>
</rss>

