<?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: timechart dynamic fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154594#M43470</link>
    <description>&lt;P&gt;Great.. I have converted my comment as answer. Please accept the answer if there are no followup question.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2014 14:14:02 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-02-21T14:14:02Z</dc:date>
    <item>
      <title>timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154583#M43459</link>
      <description>&lt;P&gt;Took the below example from documentation....&lt;/P&gt;

&lt;P&gt;Chart a single day's views and purchases at the Buttercup Games online store.&lt;/P&gt;

&lt;P&gt;sourcetype=access_* | timechart per_hour(eval(method="GET")) AS Views, per_hour(eval(action="purchase")) AS Purchases&lt;/P&gt;

&lt;P&gt;Want to do something similar but need to timechart count for all the events to host=wap4* and to host=wap5*&lt;/P&gt;

&lt;P&gt;Don't want a side by side chart...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154583#M43459</guid>
      <dc:creator>jibiuthaman</dc:creator>
      <dc:date>2020-09-28T15:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154584#M43460</link>
      <description>&lt;P&gt;If all you want to do is filter so that you only get events from those two hosts, just add those as search filters in your base search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* host=wap4* host=wap5* | timechart per_hour(eval(method="GET")) AS Views, per_hour(eval(action="purchase")) AS Purchases
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...assuming the destination host is in the "host" field. If it's in another field, just use that instead.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 06:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154584#M43460</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-02-18T06:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154585#M43461</link>
      <description>&lt;P&gt;I am not looking to filter but timechart count by host where host can 2 types... one which starts with wap4* and another that starts with wap3*... &lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154585#M43461</guid>
      <dc:creator>jibiuthaman</dc:creator>
      <dc:date>2014-02-18T16:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154586#M43462</link>
      <description>&lt;P&gt;Just add by host in the timechart.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 17:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154586#M43462</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-18T17:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154587#M43463</link>
      <description>&lt;P&gt;want to group wap4* as 1 type of host and wap3* as another type. Don't want individual time chart&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154587#M43463</guid>
      <dc:creator>jibiuthaman</dc:creator>
      <dc:date>2014-02-18T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154588#M43464</link>
      <description>&lt;P&gt;Any help on this one?&lt;BR /&gt;
I am not looking to filter but timechart count by host where host can 2 types... one which starts with wap4 and another that starts with wap3...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 19:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154588#M43464</guid>
      <dc:creator>jibiuthaman</dc:creator>
      <dc:date>2014-02-20T19:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154589#M43465</link>
      <description>&lt;P&gt;Are you looking for something like this:-&lt;/P&gt;

&lt;P&gt;sourcetype=access_* | timechart per_hour(eval(host="wap4")) AS wap4Count, per_hour(eval(host="wap5")) AS wap5Count&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154589#M43465</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154590#M43466</link>
      <description>&lt;P&gt;close... but what i want to do is&lt;BR /&gt;
sourcetype=access_* | timechart per_hour(eval(host="wap4*")) AS wap4Count, per_hour(eval(host="wap5*")) AS wap5Count&lt;/P&gt;

&lt;P&gt;This doesn't work.&lt;/P&gt;

&lt;P&gt;the below one was also close but then it also doesn't work with wild cards..&lt;/P&gt;

&lt;P&gt;source=usgs | eval Description=case(depth&amp;lt;=70, "Shallow", depth&amp;gt;70 AND depth&amp;lt;=300, "Mid", depth&amp;gt;300, "Deep") | stats count min(mag) max(mag) by Description&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154590#M43466</guid>
      <dc:creator>jibiuthaman</dc:creator>
      <dc:date>2020-09-28T15:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154591#M43467</link>
      <description>&lt;P&gt;I hope you are able to see the * after wap4 and wap5&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 21:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154591#M43467</guid>
      <dc:creator>jibiuthaman</dc:creator>
      <dc:date>2014-02-20T21:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154592#M43468</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;sourcetype=access_* | timechart per_hour(eval(LIKE(host,"wap4%"))) AS wap4Count, per_hour(eval(LIKE(host,"wap5%"))) AS wap5Count&lt;/P&gt;

&lt;P&gt;Note that * is replaced by %&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:56:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154592#M43468</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T15:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154593#M43469</link>
      <description>&lt;P&gt;Cool... it works!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2014 01:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154593#M43469</guid>
      <dc:creator>jibiuthaman</dc:creator>
      <dc:date>2014-02-21T01:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: timechart dynamic fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154594#M43470</link>
      <description>&lt;P&gt;Great.. I have converted my comment as answer. Please accept the answer if there are no followup question.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2014 14:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-dynamic-fields/m-p/154594#M43470</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-21T14:14:02Z</dc:date>
    </item>
  </channel>
</rss>

