<?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: Charting the 2 fields on the same chart. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160095#M45234</link>
    <description>&lt;P&gt;I thought so too but here is what I get:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://i.imgur.com/UR0dLKB.png"&gt;http://i.imgur.com/UR0dLKB.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, I'd like to have them on different bars of the count on the bottom.&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2014 23:52:48 GMT</pubDate>
    <dc:creator>justinfranks</dc:creator>
    <dc:date>2014-05-12T23:52:48Z</dc:date>
    <item>
      <title>Charting the 2 fields on the same chart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160092#M45231</link>
      <description>&lt;P&gt;I have a log of login timestamps. I would like to display the total count and total unique value count on the same bar chart.&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="etv" cname="*" ur="*" | stats dc(u) as "unique", count by u | chart sum(count) as "Total Logins", sum(unique) as "Total Unique Logins"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where 'u' is the UserID.&lt;/P&gt;

&lt;P&gt;However, this search charts the "Total Logins" by "Total Unique Logins", which is not what I want. &lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/UR0dLKB.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Is there a way chart this information, split by their field names?&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 01:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160092#M45231</guid>
      <dc:creator>justinfranks</dc:creator>
      <dc:date>2014-05-12T01:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Charting the 2 fields on the same chart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160093#M45232</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype="etv" cname="*" ur="*" 
| stats dc(u) as "unique", count by u 
| stats sum(count) as "Total Logins", sum(unique) as "Total Unique Logins"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should work&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 04:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160093#M45232</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-12T04:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Charting the 2 fields on the same chart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160094#M45233</link>
      <description>&lt;P&gt;Incidentally... Depending on the difference between total logins and unique logins, you may need to set the y-axis to "log" rather than "linear" in order to see the relationship between them.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 04:36:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160094#M45233</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2014-05-12T04:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Charting the 2 fields on the same chart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160095#M45234</link>
      <description>&lt;P&gt;I thought so too but here is what I get:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://i.imgur.com/UR0dLKB.png"&gt;http://i.imgur.com/UR0dLKB.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, I'd like to have them on different bars of the count on the bottom.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 23:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160095#M45234</guid>
      <dc:creator>justinfranks</dc:creator>
      <dc:date>2014-05-12T23:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Charting the 2 fields on the same chart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160096#M45235</link>
      <description>&lt;P&gt;Would this work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="etv" cname="*" ur="*" 
| stats dc(u) as "Total Unique Logins" count as "Total Logins"
| transpose
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then choose the Visualization tab&lt;/P&gt;

&lt;P&gt;(After some thought, I figured out that you can simplify your calculations.)&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 21:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160096#M45235</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-13T21:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Charting the 2 fields on the same chart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160097#M45236</link>
      <description>&lt;P&gt;Thanks! The transpose command was what I was missing.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 22:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-the-2-fields-on-the-same-chart/m-p/160097#M45236</guid>
      <dc:creator>justinfranks</dc:creator>
      <dc:date>2014-05-13T22:36:10Z</dc:date>
    </item>
  </channel>
</rss>

