<?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: Time chart - Multiple specific field values possible? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-chart-Multiple-specific-field-values-possible/m-p/26069#M5013</link>
    <description>&lt;P&gt;Thank you Ayn.  This is what I wanted. Embarassingly straightforward it seems &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2011 17:55:58 GMT</pubDate>
    <dc:creator>srw46</dc:creator>
    <dc:date>2011-01-13T17:55:58Z</dc:date>
    <item>
      <title>Time chart - Multiple specific field values possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-chart-Multiple-specific-field-values-possible/m-p/26067#M5011</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I'm trying to create a report that compares the number of transactions (from the same system) between different hosts within that system.  So far I can use the timechart, count and eval commands/functions to display for one host but I've been unable to do it for multiple host.  &lt;/P&gt;

&lt;P&gt;Here is what I'm currently using:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;(host="host1" OR host="host2" OR host="host3" OR host="host4" OR host="host5" OR host="host6" AND system_id="system") | timechart count | eval host="host1"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I've tried using additional eval, timechart and count commands but it just seems to resolve the 'latest' one and only that one.  Any suggestions please?&lt;/P&gt;

&lt;P&gt;As an additional question, when I create the report from the search results instead of plotting the host as 'host1' it is just listing it as 'count'.  I'm sure this is straightforward to a lot of you, but how can I change this?  I am very new to this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 16:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-chart-Multiple-specific-field-values-possible/m-p/26067#M5011</guid>
      <dc:creator>srw46</dc:creator>
      <dc:date>2011-01-13T16:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time chart - Multiple specific field values possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-chart-Multiple-specific-field-values-possible/m-p/26068#M5012</link>
      <description>&lt;P&gt;If I understand you correctly, you want to make &lt;CODE&gt;timechart&lt;/CODE&gt; break up the count by host? In that case, that's easy. &lt;CODE&gt;timechart&lt;/CODE&gt; supports it using the "by" parameter:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(host="host1" OR host="host2" OR host="host3" OR host="host4" OR host="host5" OR host="host6" AND system_id="system") | timechart count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As a bonus you will also solve your second problem - instead of "count" Splunk will display the value of the "host" field when charting for multiple values. That said, if you're still curious how to change the title from "count" to something else, use "as":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timechart count AS yourtitle by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As for setting it dynamically to some field value when just charting for a single field, I'm unaware of a way to do that.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 17:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-chart-Multiple-specific-field-values-possible/m-p/26068#M5012</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-01-13T17:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time chart - Multiple specific field values possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-chart-Multiple-specific-field-values-possible/m-p/26069#M5013</link>
      <description>&lt;P&gt;Thank you Ayn.  This is what I wanted. Embarassingly straightforward it seems &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 17:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-chart-Multiple-specific-field-values-possible/m-p/26069#M5013</guid>
      <dc:creator>srw46</dc:creator>
      <dc:date>2011-01-13T17:55:58Z</dc:date>
    </item>
  </channel>
</rss>

