<?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: rangemap : different timerange in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71660#M3892</link>
    <description>&lt;P&gt;It's worked very well. I put count&amp;gt;11 because I change my criterias. I just put count because count allows to count the number of events returns by the search and it's exactly that I want to do. Thanks very much to your help.&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2012 15:01:24 GMT</pubDate>
    <dc:creator>LauraBre</dc:creator>
    <dc:date>2012-06-12T15:01:24Z</dc:date>
    <item>
      <title>rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71647#M3879</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="tcp:5543" Requester="uka*" hostname="L05236"|stats count | rangemap field=count severe=0-0 elevated=1-50 default=low
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to know if it's possible to say in this search that between 00:00 and 10:00 severe=0-0, between 10:00 and 16:00 severe=0-10.&lt;/P&gt;

&lt;P&gt;thanks by advance&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71647#M3879</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-11T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71648#M3880</link>
      <description>&lt;P&gt;I believe that you can rewrite the value of &lt;CODE&gt;range&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="tcp:5543" Requester="uka*" hostname="L05236" | stats count values(date_hour) AS dh | rangemap field=count severe=0-0 elevated=1-50 default=low | eval range=if(dh&amp;gt;9 AND dh&amp;lt;16 AND count&amp;lt;11, "severe", range)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="tcp:5543" Requester="uka*" hostname="L05236" |eval date_hour=strftime(_time, "%H") | stats count values(date_hour) AS dh | stats count(Event) as ST by dh |rangemap field=ST severe=0-0 elevated=1-50 default=low | eval range=if(dh&amp;gt;9 AND dh&amp;lt;16 AND count&amp;lt;11, "severe", range)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should probably be rewritten like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="tcp:5543" Requester="uka*" hostname="L05236" |eval date_hour=strftime(_time, "%H") | stats count(Event) AS ST by date_hour |rangemap field=ST severe=0-0 elevated=1-50 default=low | eval range=if(date_hour&amp;gt;9 AND date_hour&amp;lt;16 AND ST&amp;lt;11, "severe", range)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: typo&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 10:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71648#M3880</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-11T10:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71649#M3881</link>
      <description>&lt;P&gt;Updated. However, what do you want to happen when a search spans from 08:00 to 13:00?&lt;/P&gt;

&lt;P&gt;/kristian&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 10:16:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71649#M3881</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-11T10:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71650#M3882</link>
      <description>&lt;P&gt;Thx very much. How can I put in a xml file because when I put it in my dashboard xml file, I got an error. I thinks it's the "&amp;lt;" which is the problem. &lt;/P&gt;

&lt;P&gt;Thx by advance,&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 10:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71650#M3882</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-11T10:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71651#M3883</link>
      <description>&lt;P&gt;Not my field of expertise, but you might benefit from this question and answer regarding characters being interpreted as part of the XML:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/30157/inputlookup-in-view-with-rex"&gt;http://splunk-base.splunk.com/answers/30157/inputlookup-in-view-with-rex&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 10:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71651#M3883</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-11T10:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71652#M3884</link>
      <description>&lt;P&gt;The problem is also present in a search bar. I think the problem is "stats count values(date_hour) AS dh" because in my table there aren't the values of dh so next, it can't compare dh with 9 and 16...&lt;/P&gt;

&lt;P&gt;Thanks by advance if you know the solution of this problem.&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 08:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71652#M3884</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-12T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71653#M3885</link>
      <description>&lt;P&gt;The field &lt;CODE&gt;date_hour&lt;/CODE&gt; is extracted by default for almost all sourcetypes (like &lt;CODE&gt;punct, timestartpos&lt;/CODE&gt; etc), but not for Windows Event Logs.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 09:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71653#M3885</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-12T09:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71654#M3886</link>
      <description>&lt;P&gt;The problem is that I want to count the number of events by hour and with the result by hour, I want to apply the range on the results but actually I've got this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="tcp:5543" Requester="uka*" hostname="L05236" |eval date_hour=strftime(_time, "%H") | stats count values(date_hour) AS dh | stats count(Event) as ST by dh |rangemap field=ST severe=0-0 elevated=1-50 default=low by| eval range=if(dh&amp;gt;9 AND dh&amp;lt;16 AND count&amp;lt;11, "severe", range)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks by advance if you know the solution of this problem.&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 09:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71654#M3886</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-12T09:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71655#M3887</link>
      <description>&lt;P&gt;Please don't post questions as answers. It makes it very hard to actually see the questions you're asking.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 09:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71655#M3887</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-12T09:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71656#M3888</link>
      <description>&lt;P&gt;Updated and confirmed that it works. Had to fix a few typos, sorry about that. Do you want &lt;CODE&gt;count(Event)&lt;/CODE&gt; or just &lt;CODE&gt;count&lt;/CODE&gt;, which is the same as &lt;CODE&gt;count(_raw)&lt;/CODE&gt;, i.e. the raw event.&lt;/P&gt;

&lt;P&gt;If you want to run your search over more than 24 hours, you'll need to combine date_hour with other date_* fields, or use &lt;CODE&gt;timechart&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71656#M3888</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71657#M3889</link>
      <description>&lt;P&gt;The problem is that I want to count the number of events by hour and with the result by hour, I want to apply the range on the results but actually I've got this search:&lt;/P&gt;

&lt;P&gt;source="tcp:5543" Requester="uka*" hostname="L05236" |eval date_hour=strftime(_time, "%H") | stats count values(date_hour) AS dh | stats count(Event) as ST by dh |rangemap field=ST severe=0-0 elevated=1-50 default=low by| eval range=if(dh&amp;gt;9 AND dh&amp;lt;16 AND count&amp;lt;11, "severe", range)&lt;/P&gt;

&lt;P&gt;Thanks by advance if you know the solution of this problem.&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71657#M3889</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2020-09-28T11:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71658#M3890</link>
      <description>&lt;P&gt;My problem is resolved. Thanks very much.&lt;/P&gt;

&lt;P&gt;This is my final search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="tcp:5543" Requester="uka*" hostname="L05236" |eval date_hour=strftime(_time, "%H") |stats count by date_hour |rangemap field=count severe=0-0 elevated=1-50 default=low | eval range=if(date_hour&amp;gt;9 AND date_hour&amp;lt;16 AND count&amp;gt;11, "severe", range)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2012 11:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71658#M3890</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-12T11:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71659#M3891</link>
      <description>&lt;P&gt;Ok, the count(Event) was some type of pseudo-code? In any case, I am happy that it works for you, but you are now saying count&amp;gt;11, rather than count&amp;lt;11. I do not think that is what you want, at least not according to your original post.&lt;/P&gt;

&lt;P&gt;Please mark as "answered" if your question has been resolved.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 12:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71659#M3891</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-12T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap : different timerange</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71660#M3892</link>
      <description>&lt;P&gt;It's worked very well. I put count&amp;gt;11 because I change my criterias. I just put count because count allows to count the number of events returns by the search and it's exactly that I want to do. Thanks very much to your help.&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 15:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-different-timerange/m-p/71660#M3892</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-06-12T15:01:24Z</dc:date>
    </item>
  </channel>
</rss>

