<?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: How can you create a historical graph? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11873#M852</link>
    <description>&lt;P&gt;I'm not sure I understand, but assuming you've defined for each source/sourcetype fields named &lt;CODE&gt;value&lt;/CODE&gt; and &lt;CODE&gt;name&lt;/CODE&gt; for each respective column in the data, seems like one of the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=file*.txt | chart count(name) by value
source=file*.txt | chart distinct_count(name) by value
source=file*.txt | chart count by name,value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;would do it.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2010 03:48:59 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-04-21T03:48:59Z</dc:date>
    <item>
      <title>How can you create a historical graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11872#M851</link>
      <description>&lt;P&gt;I would like to create a graph that would show values compared from an initial source.&lt;/P&gt;

&lt;P&gt;Here's an example:&lt;/P&gt;

&lt;PRE&gt;
[file1.txt's content]
value1,name1
value1,name2
value1,name3
value2,name1
value2,name2
value2,name3
value3,name1
value3,name2
value3,name3
&lt;/PRE&gt;

&lt;PRE&gt;
[file2.txt's content]
value1,name1
value1,name2
value2,name2
value2,name3
value3,name2
value3,name3
&lt;/PRE&gt;

&lt;PRE&gt;
[file3.txt's content]
value1,name2
value2,name2
&lt;/PRE&gt;

&lt;P&gt;I would like to show on a bar/line graph the number per value.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 03:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11872#M851</guid>
      <dc:creator>BunnyHop</dc:creator>
      <dc:date>2010-04-21T03:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a historical graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11873#M852</link>
      <description>&lt;P&gt;I'm not sure I understand, but assuming you've defined for each source/sourcetype fields named &lt;CODE&gt;value&lt;/CODE&gt; and &lt;CODE&gt;name&lt;/CODE&gt; for each respective column in the data, seems like one of the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=file*.txt | chart count(name) by value
source=file*.txt | chart distinct_count(name) by value
source=file*.txt | chart count by name,value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;would do it.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 03:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11873#M852</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-21T03:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a historical graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11874#M853</link>
      <description>&lt;P&gt;The chart command will take the N values of the 'value' field and create N new columns in the results for them.  the stats command will instead give one 3-cell row for each unique combination.&lt;/P&gt;

&lt;P&gt;Bottom line: if it turns out you want a table that has 3 columns:  name, value, and count,  then you'd want&lt;BR /&gt;
stats count by name, value&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2010 07:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11874#M853</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-04-23T07:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a historical graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11875#M854</link>
      <description>&lt;P&gt;the number per value&lt;BR /&gt;
index=your_index_naume  source=file*.txt | chart count as numbers  by value&lt;BR /&gt;&lt;BR /&gt;
or&lt;BR /&gt;
index=your_index_naume  source=file*.txt | eval number=value|chart c(number) as numbers  by value&lt;/P&gt;

&lt;P&gt;after search you select a bar/line graph.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-create-a-historical-graph/m-p/11875#M854</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2020-09-28T18:22:49Z</dc:date>
    </item>
  </channel>
</rss>

