<?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 help to values many fields in timechart command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475757#M192590</link>
    <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;i use the search below for displaying a timechart&lt;BR /&gt;
as you can see, the timechart is sorted by host&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`toto` 
    earliest=-5d latest=now 
| lookup test.csv HOSTNAME as host output SITE MODEL 
| timechart avg(BootTime) as "Boot time" by host limit=10 useother=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I also need to values the fields SITE and MODEL in order to have for an host, the avg(BootTime), the SITE and the MODEL&lt;BR /&gt;
Something like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | timechart avg(BootTime) as "Boot time" by host SITE MODEL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to do for values other fields with a timechart command please???&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 09:36:20 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2020-02-18T09:36:20Z</dc:date>
    <item>
      <title>help to values many fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475757#M192590</link>
      <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;i use the search below for displaying a timechart&lt;BR /&gt;
as you can see, the timechart is sorted by host&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`toto` 
    earliest=-5d latest=now 
| lookup test.csv HOSTNAME as host output SITE MODEL 
| timechart avg(BootTime) as "Boot time" by host limit=10 useother=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I also need to values the fields SITE and MODEL in order to have for an host, the avg(BootTime), the SITE and the MODEL&lt;BR /&gt;
Something like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | timechart avg(BootTime) as "Boot time" by host SITE MODEL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to do for values other fields with a timechart command please???&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 09:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475757#M192590</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-02-18T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: help to values many fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475758#M192591</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;....
|eval tmp=host.":".SITE.":".MODEL
| timechart avg(BootTime) as "Boot time" by tmp
| rex field=tmp "(?&amp;lt;host&amp;gt;\S+?):(?&amp;lt;SITE&amp;gt;\S+?):(?&amp;lt;MODEL&amp;gt;\S+)"
| fields - tmp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Feb 2020 10:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475758#M192591</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-18T10:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: help to values many fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475759#M192592</link>
      <description>&lt;P&gt;It doesnt works&lt;BR /&gt;
if I am doing &lt;CODE&gt;| search SITE=* OR MODEL=*&lt;/CODE&gt; I have no results&lt;BR /&gt;
And i also need to display the timechart by host&lt;BR /&gt;
Actually instead host I have "NULL"&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 12:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475759#M192592</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-02-18T12:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: help to values many fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475760#M192593</link>
      <description>&lt;P&gt;@jip31&lt;/P&gt;

&lt;P&gt;Of course you do the query after the lookup, right?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;it doesn't works&lt;/CODE&gt;&lt;BR /&gt;
You say this and you know the cause and what to do?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 12:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475760#M192593</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-18T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: help to values many fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475761#M192594</link>
      <description>&lt;P&gt;yes after the lookup&lt;BR /&gt;
and i dont know why &lt;CODE&gt;| search SITE=* OR MODEL=*&lt;/CODE&gt; doesnt works&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 06:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475761#M192594</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-02-19T06:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: help to values many fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475762#M192595</link>
      <description>&lt;P&gt;&lt;CODE&gt;| search SITE=* OR MODEL=*&lt;/CODE&gt; is unnecessary.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 08:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-to-values-many-fields-in-timechart-command/m-p/475762#M192595</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-19T08:49:06Z</dc:date>
    </item>
  </channel>
</rss>

