<?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 time_format with random words between date and time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-format-with-random-words-between-date-and-time/m-p/396572#M70676</link>
    <description>&lt;P&gt;@bobmacks for TIME_PREFIX, I don't see where the string DATE exists in your sample data. Is this the case?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 19:48:11 GMT</pubDate>
    <dc:creator>integratorz</dc:creator>
    <dc:date>2019-02-28T19:48:11Z</dc:date>
    <item>
      <title>Parsing time_format with random words between date and time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-format-with-random-words-between-date-and-time/m-p/396571#M70675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm attempting to extract data and time from a custom text file where date and time are split across two lines and contains two different combination of words in between them. A sample data I'm trying to ingest looks like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PAGE 1    20-02-2019
ABC       08.03.45
data....

PAGE 2    20-02-2019
DEF       08.50.12
data....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The TIME_PREFIX is pretty straightforward but I'm stuck with how to define TIME_FORMAT to handle the inconsistent characters (i.e. ABC vs DEF) between the date and time fields. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; TIME_PREFIX=^DATE\s{1}\d{1}\s{4}
 TIME_FORMAT=%d-%m-%Y%n???       %H.%M.%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-format-with-random-words-between-date-and-time/m-p/396571#M70675</guid>
      <dc:creator>bobmacks</dc:creator>
      <dc:date>2020-09-29T23:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing time_format with random words between date and time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-format-with-random-words-between-date-and-time/m-p/396572#M70676</link>
      <description>&lt;P&gt;@bobmacks for TIME_PREFIX, I don't see where the string DATE exists in your sample data. Is this the case?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 19:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-format-with-random-words-between-date-and-time/m-p/396572#M70676</guid>
      <dc:creator>integratorz</dc:creator>
      <dc:date>2019-02-28T19:48:11Z</dc:date>
    </item>
  </channel>
</rss>

