<?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: Multiple timestamps in a file in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536004#M9641</link>
    <description>&lt;P&gt;in props.conf:&lt;BR /&gt;&lt;BR /&gt;LINE_BREAKER =&amp;nbsp;([\r\n]+).*\d\d\:\d\d\:\d\d($| [AP]M| \w{3} \d{4})&lt;/P&gt;&lt;P&gt;After that, please rex it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 13:15:28 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2021-01-15T13:15:28Z</dc:date>
    <item>
      <title>Multiple timestamps in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/535869#M9640</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to break the events based on the timestamp.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;File contains multiple time formats.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;sample Time stamps:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;01 January 2021 10:21:66&lt;BR /&gt;2021年01月01日 金曜日 10:07:54 AM&lt;BR /&gt;2021年01月01日 金曜日 14:54:03&lt;BR /&gt;2021年01月01日 12:55:54 PM&lt;BR /&gt;2021年01月01日 13:54:54&lt;BR /&gt;2021年1月1日 20:59:04&lt;BR /&gt;2021年1月1日 9:23:32 AM&lt;BR /&gt;金曜日, 3 1月 2021 11:49:45 AM&lt;BR /&gt;Monday 3 January 2021 14:01:40&lt;BR /&gt;Monday, 3 January 2021 11:05:11 AM&lt;BR /&gt;Monday, January 3, 2021 10:04:44 AM&lt;BR /&gt;Thu Jan 7 22:33:44 EST 2021&lt;BR /&gt;&lt;BR /&gt;Sample events:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;07 January 2021 18:21:56&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Employee1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Project Project Name Project Owner&lt;BR /&gt;------ ---------- -----------&lt;BR /&gt;A Y: \\Owner1\owner2&lt;BR /&gt;B Z: \\owner_1\owner 2&lt;BR /&gt;C g: \\owner11\owner12\owner 13&lt;/P&gt;&lt;P&gt;Friday, January 8, 2021 10:04:44 AM&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Employee2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Project Project Name Project Owner&lt;BR /&gt;------ ---------- -----------&lt;BR /&gt;A Y: \\Owner1\owner2&lt;BR /&gt;B Z: \\owner_1\owner 2&lt;BR /&gt;C g: \\owner11\owner12\owner 13&lt;BR /&gt;&lt;BR /&gt;2021年01月08日 金曜日 10:07:54 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Employee3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Project Project Name Project Owner&lt;BR /&gt;------ ---------- -----------&lt;BR /&gt;A Y: \\Owner1\owner2&lt;BR /&gt;B Z: \\owner_1\owner 2&lt;BR /&gt;C g: \\owner11\owner12\owner 13&lt;BR /&gt;&lt;BR /&gt;I tried with datetime.xml but it didn't work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Expected output:&lt;BR /&gt;&lt;BR /&gt;Break events before timestamp and show results in the below tabular format.&lt;BR /&gt;&lt;BR /&gt;Employee1&amp;nbsp;A Y: \\Owner1\owner2&lt;BR /&gt;Employee1 B Z: \\owner_1\owner 2&lt;BR /&gt;Employee1 C g: \\owner11\owner12\owner 13&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 16:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/535869#M9640</guid>
      <dc:creator>sandysplunker</dc:creator>
      <dc:date>2021-01-14T16:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple timestamps in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536004#M9641</link>
      <description>&lt;P&gt;in props.conf:&lt;BR /&gt;&lt;BR /&gt;LINE_BREAKER =&amp;nbsp;([\r\n]+).*\d\d\:\d\d\:\d\d($| [AP]M| \w{3} \d{4})&lt;/P&gt;&lt;P&gt;After that, please rex it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 13:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536004#M9641</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-15T13:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple timestamps in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536027#M9642</link>
      <description>&lt;P&gt;I tried mentioned props but below events are excluded.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;2021年01月08日 金曜日 10:07:54 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Employee3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Project Project Name Project Owner&lt;BR /&gt;------ ---------- -----------&lt;BR /&gt;A Y: \\Owner1\owner2&lt;BR /&gt;B Z: \\owner_1\owner 2&lt;BR /&gt;C g: \\owner11\owner12\owner 13&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 15:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536027#M9642</guid>
      <dc:creator>sandysplunker</dc:creator>
      <dc:date>2021-01-15T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple timestamps in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536048#M9643</link>
      <description>&lt;P&gt;Of course.&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;right?&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=your_sourcetype
| rex "(?m)(?&amp;lt;employee&amp;gt;^\w+$)"
| rex "(?ms)----$\s(?&amp;lt;csv&amp;gt;.*)"
| rex field=csv max_match=0 "(?m)(?&amp;lt;project&amp;gt;\S+)\s(?&amp;lt;project_name&amp;gt;\S+)\s(?&amp;lt;project_owner&amp;gt;.*)"
| table employee project*&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 20:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536048#M9643</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-15T20:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple timestamps in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536070#M9644</link>
      <description>&lt;P&gt;&lt;BR /&gt;Yes, still events are not breakings before timestamp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandysplunker_0-1610747944774.png" style="width: 687px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12558iF2959AC02E1E35B5/image-dimensions/687x186?v=v2" width="687" height="186" role="button" title="sandysplunker_0-1610747944774.png" alt="sandysplunker_0-1610747944774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample time formats in my log data:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;01 January 2021 10:21:66&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021年01月01日 金曜日 10:07:54 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021年01月01日 金曜日 14:54:03&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021年01月01日 12:55:54 PM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021年01月01日 13:54:54&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021年1月1日 20:59:04&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2021年1月1日 9:23:32 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;金曜日, 3 1月 2021 11:49:45 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monday 3 January 2021 14:01:40&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monday, 3 January 2021 11:05:11 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monday, January 3, 2021 10:04:44 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thu Jan 7 22:33:44 EST 2021&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 22:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536070#M9644</guid>
      <dc:creator>sandysplunker</dc:creator>
      <dc:date>2021-01-15T22:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple timestamps in a file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536075#M9645</link>
      <description>&lt;P&gt;try (?m)&lt;/P&gt;&lt;P&gt;LINE_BREAKER=(?m)([\r\n]+).*\d\d\:\d\d\:\d\d($| [AP]M| \w{3} \d{4})&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 22:51:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-timestamps-in-a-file/m-p/536075#M9645</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-15T22:51:45Z</dc:date>
    </item>
  </channel>
</rss>

