<?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: Chart by selected fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199598#M57794</link>
    <description>&lt;P&gt;I want to create a table with one Field per row. For me what’s important is to learn how to display those fields and the values. The fields are fixed; every event has the same fields.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2014 15:42:21 GMT</pubDate>
    <dc:creator>vanniar</dc:creator>
    <dc:date>2014-01-10T15:42:21Z</dc:date>
    <item>
      <title>Chart by selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199596#M57792</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I am trying to structure some data from an outside source. In the data I get a lot of fields for each event, I want to work by selected field as below:&lt;BR /&gt;
Field 1 Count   Sparkline(Value)&lt;BR /&gt;
Field 2 Count   Sparkline(Value)&lt;BR /&gt;
Field 3 Count   Sparkline(Value)&lt;BR /&gt;
Field 4 Count   Sparkline(Value)&lt;BR /&gt;
Field 5 Count   Sparkline(Value)&lt;BR /&gt;
Field 6 Count   Sparkline(Value)&lt;/P&gt;

&lt;P&gt;So far I haven’t been able to figure out how to pass the field as a variable in a search. Any help?&lt;BR /&gt;
Vanniar &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 14:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199596#M57792</guid>
      <dc:creator>vanniar</dc:creator>
      <dc:date>2014-01-10T14:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Chart by selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199597#M57793</link>
      <description>&lt;P&gt;Can you be more specific on the output you want? Its a table or chart? You want different rows for different field? How you are selecting fields, fixed list or dynamic?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 15:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199597#M57793</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-10T15:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Chart by selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199598#M57794</link>
      <description>&lt;P&gt;I want to create a table with one Field per row. For me what’s important is to learn how to display those fields and the values. The fields are fixed; every event has the same fields.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 15:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199598#M57794</guid>
      <dc:creator>vanniar</dc:creator>
      <dc:date>2014-01-10T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Chart by selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199599#M57795</link>
      <description>&lt;P&gt;By the way. by fields I mean the ones inside the event. you can see them when you click in "All Fields" in the left panel.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 16:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199599#M57795</guid>
      <dc:creator>vanniar</dc:creator>
      <dc:date>2014-01-10T16:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Chart by selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199600#M57796</link>
      <description>&lt;P&gt;Try this (for starters)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=fields | stats sparkline(avg(Field1)) as "Sparkline(value)", count(Field1) as Count | eval FieldName="Field1" | append [search sourcetype=fields | stats sparkline(avg(Field2)) as "Sparkline(value)", count(Field2) as Count | eval FieldName ="Field2"]  | append [search sourcetype=fields | stats sparkline(avg(Field3)) as "Sparkline(value)", count(Field3) as Count | eval FieldName ="Field3"] | append [search sourcetype=fields | stats sparkline(avg(Field4)) as "Sparkline(value)", count(Field4) as Count | eval FieldName ="Field4"]  | append [search sourcetype=fields | stats sparkline(avg(Field4)) as "Sparkline(value)", count(Field5) as Count | eval FieldName ="Field5"]  | append [search sourcetype=fields | stats sparkline(avg(Field6)) as "Sparkline(value)", count(Field6) as Count | eval FieldName ="Field6"] | table FieldName , "Sparkline(value)", Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2014 17:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199600#M57796</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-10T17:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chart by selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199601#M57797</link>
      <description>&lt;P&gt;Actually what I was looking for was to pull the fields. What worked for me was this:&lt;BR /&gt;
...| fieldsummary|table field count min max&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 19:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199601#M57797</guid>
      <dc:creator>vanniar</dc:creator>
      <dc:date>2014-01-10T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Chart by selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199602#M57798</link>
      <description>&lt;P&gt;If your field names follow some patterns, you can filter based on that or may have fields names in a lookup file and filter with that.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 20:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-by-selected-fields/m-p/199602#M57798</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-10T20:36:30Z</dc:date>
    </item>
  </channel>
</rss>

