<?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 how to filter based on hour and minute after using transpose? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/how-to-filter-based-on-hour-and-minute-after-using-transpose/m-p/677235#M18640</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using a mstats for a mteric and I am evaluating my hour and minute field something like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| mstats rate_avg(abc*) prestats=false WHERE "index"="def" span=3m&lt;BR /&gt;| rename rate_avg(* as *, *) as *&lt;BR /&gt;| eval Date=strftime(_time,"%m/%d/%Y")&lt;BR /&gt;| eval hour=strftime(_time,"%H")&lt;BR /&gt;| eval minute=strftime(_time,"%M")&lt;BR /&gt;| transpose column_name=instance&lt;BR /&gt;| rename "row 1" as MessagesRead&lt;BR /&gt;| eval MessagesRead=ROUND(MessagesRead,0)&lt;BR /&gt;| where MessagesRead &amp;lt; 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now I am unable to to use the below filter condition&lt;/P&gt;&lt;P&gt;| search NOT (instance="*xyz*" AND hour=09 AND (minute&amp;gt;=00 AND minute&amp;lt;=15))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as I dont want to alert for a particular instance only from 9 to 9:15, but it should alert for other instance for this time period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now before the transpose the instance does not exist and I cant use the filter and after transpose I am unable to filter on hour and minute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can u please help in filtering after transpose?&lt;/P&gt;</description>
    <pubDate>Sun, 11 Feb 2024 18:40:20 GMT</pubDate>
    <dc:creator>abhi04</dc:creator>
    <dc:date>2024-02-11T18:40:20Z</dc:date>
    <item>
      <title>how to filter based on hour and minute after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/how-to-filter-based-on-hour-and-minute-after-using-transpose/m-p/677235#M18640</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using a mstats for a mteric and I am evaluating my hour and minute field something like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| mstats rate_avg(abc*) prestats=false WHERE "index"="def" span=3m&lt;BR /&gt;| rename rate_avg(* as *, *) as *&lt;BR /&gt;| eval Date=strftime(_time,"%m/%d/%Y")&lt;BR /&gt;| eval hour=strftime(_time,"%H")&lt;BR /&gt;| eval minute=strftime(_time,"%M")&lt;BR /&gt;| transpose column_name=instance&lt;BR /&gt;| rename "row 1" as MessagesRead&lt;BR /&gt;| eval MessagesRead=ROUND(MessagesRead,0)&lt;BR /&gt;| where MessagesRead &amp;lt; 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now I am unable to to use the below filter condition&lt;/P&gt;&lt;P&gt;| search NOT (instance="*xyz*" AND hour=09 AND (minute&amp;gt;=00 AND minute&amp;lt;=15))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as I dont want to alert for a particular instance only from 9 to 9:15, but it should alert for other instance for this time period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now before the transpose the instance does not exist and I cant use the filter and after transpose I am unable to filter on hour and minute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can u please help in filtering after transpose?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 18:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/how-to-filter-based-on-hour-and-minute-after-using-transpose/m-p/677235#M18640</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2024-02-11T18:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter based on hour and minute after using transpose?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/how-to-filter-based-on-hour-and-minute-after-using-transpose/m-p/677238#M18641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/95912"&gt;@abhi04&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To filter with the where or search commands at the end of the pipeline, try the untable command instead of the transpose command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;| mstats rate_avg(abc*) as abc* where index=def span=3m
| untable _time instance MessagesRead
| eval MessagesRead=round(MessagesRead, 0)
| where ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 21:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/how-to-filter-based-on-hour-and-minute-after-using-transpose/m-p/677238#M18641</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-02-11T21:42:23Z</dc:date>
    </item>
  </channel>
</rss>

