<?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: use multiple numbers at search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628013#M218183</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Yes, would be great, but this filed is not equal to the generated time of the log. Unfortunatly it's a custom one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also interested in the regex what splits _time filed to day,hour.. and so on.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 16:34:56 GMT</pubDate>
    <dc:creator>ipteam</dc:creator>
    <dc:date>2023-01-23T16:34:56Z</dc:date>
    <item>
      <title>How to use multiple numbers in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628005#M218178</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;
&lt;P&gt;I'd like to create a search based on business hours, and like to use a field with value like this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;"2023/01/20 &lt;STRONG&gt;08&lt;/STRONG&gt;:52:58"&lt;/P&gt;
&lt;P&gt;The bold number would be interesting, and like to search with multiple values. example 08-18h [08,09,10,11,12,13,14,15,16,17,18]&lt;/P&gt;
&lt;P&gt;How could I find a regex to extract theese numbers?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 19:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628005#M218178</guid>
      <dc:creator>ipteam</dc:creator>
      <dc:date>2023-01-23T19:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: use multiple numbers at search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628006#M218179</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/37219"&gt;@ipteam&lt;/a&gt;&amp;nbsp;You shouldn't need a field extraction. Splunk parses the timestamp into multiple fields like &lt;EM&gt;date_hour.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Sample search:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal
| where date_hour&amp;gt;07 AND date_hour&amp;lt;19&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628006#M218179</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2023-01-23T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: use multiple numbers at search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628013#M218183</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, would be great, but this filed is not equal to the generated time of the log. Unfortunatly it's a custom one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also interested in the regex what splits _time filed to day,hour.. and so on.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 16:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628013#M218183</guid>
      <dc:creator>ipteam</dc:creator>
      <dc:date>2023-01-23T16:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: use multiple numbers at search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628032#M218188</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/37219"&gt;@ipteam&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this should work for you:&lt;/P&gt;&lt;PRE&gt;&amp;lt;your search goes here&amp;gt;&lt;BR /&gt;| rex field=&amp;lt;insert field name that contains timestamp here&amp;gt; "(?&amp;lt;year&amp;gt;\d{4})\/(?&amp;lt;month&amp;gt;\d{2})\/(?&amp;lt;day&amp;gt;\d{2})\s+(?&amp;lt;hour&amp;gt;\d{2})\:(?&amp;lt;minutes&amp;gt;\d{2})\:(?&amp;lt;seconds&amp;gt;\d{2})"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 19:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628032#M218188</guid>
      <dc:creator>jamie00171</dc:creator>
      <dc:date>2023-01-23T19:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: use multiple numbers at search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628042#M218189</link>
      <description>&lt;P&gt;Those time fields are tricky because:&lt;/P&gt;&lt;P&gt;1) They might not get extracted at all&lt;/P&gt;&lt;P&gt;2) They represent the timestamp parts as included in the raw event. So if the original event included some exotic timezone, those fields will be in that timezone.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 21:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628042#M218189</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-01-23T21:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: use multiple numbers at search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628075#M218200</link>
      <description>&lt;P&gt;Hello Jamie,&lt;/P&gt;&lt;P&gt;Works, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 07:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-multiple-numbers-in-search/m-p/628075#M218200</guid>
      <dc:creator>ipteam</dc:creator>
      <dc:date>2023-01-24T07:53:04Z</dc:date>
    </item>
  </channel>
</rss>

