<?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: Extract date and time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679253#M232204</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213488"&gt;@jotne&lt;/a&gt;&amp;nbsp;has used %z as time zone information on props.conf you should add also this to your regex and then if/when needed use strptime and strftime functions to convert that field as needed. On ingestion time that happened automatically with correct TIME* definitions.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 09:55:22 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2024-03-01T09:55:22Z</dc:date>
    <item>
      <title>Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/678315#M231962</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I need help in extracting the following date and time from the log,&lt;BR /&gt;sample log: -0900, 04.25.01 THU 22FEB24 nDD62320I&lt;/P&gt;&lt;P&gt;I need the 04.25.01 THU 22FEB24 part, could someone please help in extracting this using rex&lt;/P&gt;&lt;P&gt;Any help is much appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 09:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/678315#M231962</guid>
      <dc:creator>Devi13</dc:creator>
      <dc:date>2024-02-22T09:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/678317#M231964</link>
      <description>&lt;P&gt;Some like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;,\s(\d\d\.\d\d\.\d\d\s\w+\s\d+\w+\d\d)\s&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or do you like to do it props.conf to set the _time field?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT =  %z, %T %a %d%b%y&lt;/LI-CODE&gt;&lt;P&gt;Try it out here:&amp;nbsp;&lt;A href="https://strftime.net/" target="_blank"&gt;https://strftime.net/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 09:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/678317#M231964</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2024-02-22T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/678331#M231970</link>
      <description>Thank you so much, worked like a charm</description>
      <pubDate>Thu, 22 Feb 2024 12:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/678331#M231970</guid>
      <dc:creator>Devi13</dc:creator>
      <dc:date>2024-02-22T12:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679246#M232199</link>
      <description>&lt;P&gt;hii,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked fine till February but for some reason the date is not getting extracted for March.&lt;/P&gt;&lt;P&gt;Could you please help here&lt;/P&gt;&lt;P&gt;want the date extracted for all the months..as the day goes by&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679246#M232199</guid>
      <dc:creator>Devi13</dc:creator>
      <dc:date>2024-03-01T09:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679249#M232201</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213488"&gt;@jotne&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this is the regex:&amp;nbsp;| rex field=_raw (?&amp;lt;date&amp;gt;\s(\d\d\.\d\d\.\d\d\s\w+\s\d+\w+\d\d)\s)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679249#M232201</guid>
      <dc:creator>Devi13</dc:creator>
      <dc:date>2024-03-01T09:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679250#M232202</link>
      <description>&lt;P&gt;I guess the first 9 days in every month has just one digit.&amp;nbsp; This should do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;,\s(\d\d\.\d\d\.\d\d\s\w+\s+\d+\w+\d\d)\s&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added a + behind a space since it may be more than one space&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT =  %z, %T %a %e%b%y&lt;/LI-CODE&gt;&lt;P&gt;Change a %d to %e&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679250#M232202</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2024-03-01T09:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679251#M232203</link>
      <description>&lt;P&gt;Thank you so much for your great help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679251#M232203</guid>
      <dc:creator>Devi13</dc:creator>
      <dc:date>2024-03-01T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extract date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679253#M232204</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213488"&gt;@jotne&lt;/a&gt;&amp;nbsp;has used %z as time zone information on props.conf you should add also this to your regex and then if/when needed use strptime and strftime functions to convert that field as needed. On ingestion time that happened automatically with correct TIME* definitions.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-date-and-time/m-p/679253#M232204</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-03-01T09:55:22Z</dc:date>
    </item>
  </channel>
</rss>

