<?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: Filtering by 24h time in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567111#M197628</link>
    <description>&lt;P&gt;You probably need to convert the string to a number e.g. "18:30" becomes 1830 and "08:30" becomes 830&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval timeofevent=tonumber(replace(timeofevent,":",""),10)
| where timeofevent&amp;gt;=1830 OR timeofevent&amp;lt;=830&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 12:31:39 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-09-15T12:31:39Z</dc:date>
    <item>
      <title>Filtering by 24h time in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567102#M197621</link>
      <description>&lt;P&gt;I have a field&amp;nbsp;&lt;STRONG&gt;timeofevent&lt;/STRONG&gt; which contains the time at which the event was logged in 24 hour format.&lt;/P&gt;&lt;P&gt;Format of&amp;nbsp;&lt;STRONG&gt;timeofevent&lt;/STRONG&gt;: HH:MM&lt;/P&gt;&lt;P&gt;I want only the events which were logged between 18:30 to 08:30 CST.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 11:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567102#M197621</guid>
      <dc:creator>priyangshupal</dc:creator>
      <dc:date>2021-09-15T11:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by 24h time in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567103#M197622</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where timeofevent&amp;gt;="18:30" OR timeofevent&amp;lt;="08:30"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 11:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567103#M197622</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-15T11:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by 24h time in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567104#M197623</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn't it be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where timeofevent&amp;gt;="18:30" AND timeofevent&amp;lt;="08:30"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 12:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567104#M197623</guid>
      <dc:creator>priyangshupal</dc:creator>
      <dc:date>2021-09-15T12:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by 24h time in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567105#M197624</link>
      <description>&lt;P&gt;Only if you want no results!&lt;/P&gt;&lt;P&gt;Splunk works on a pipeline of event, each event is processed separately, so an event cannot be both &amp;gt;18:30 and &amp;lt;08:30 at the same time&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 12:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567105#M197624</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-15T12:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by 24h time in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567109#M197627</link>
      <description>&lt;P&gt;By using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where timeofevent&amp;gt;="18:30" OR timeofevent&amp;lt;="08:30"&lt;/LI-CODE&gt;&lt;P&gt;it is returning all the events, even the ones which are outside of that timeframe&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 12:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567109#M197627</guid>
      <dc:creator>priyangshupal</dc:creator>
      <dc:date>2021-09-15T12:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering by 24h time in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567111#M197628</link>
      <description>&lt;P&gt;You probably need to convert the string to a number e.g. "18:30" becomes 1830 and "08:30" becomes 830&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval timeofevent=tonumber(replace(timeofevent,":",""),10)
| where timeofevent&amp;gt;=1830 OR timeofevent&amp;lt;=830&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 12:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-by-24h-time-in-splunk/m-p/567111#M197628</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-15T12:31:39Z</dc:date>
    </item>
  </channel>
</rss>

