<?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: Line up sources in chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25199#M958</link>
    <description>&lt;P&gt;Yeah, try tacking a table command on the end of your search string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table totalemailsent,totalemailtosend, *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Apr 2012 21:04:47 GMT</pubDate>
    <dc:creator>tysonstewart</dc:creator>
    <dc:date>2012-04-11T21:04:47Z</dc:date>
    <item>
      <title>Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25198#M957</link>
      <description>&lt;P&gt;&lt;IMG src="http://s16.postimage.org/nciu3opxh/Screenshot.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Is there a way to graph a chart where the sources will line up next to each other?  From the example above, I want totalemailssent and totalemailtosend from one source to be side by side in the chart.&lt;/P&gt;

&lt;P&gt;Example:  the highest 2 columns in the chart are the same source for each day.  Can I get them to show up side by side?&lt;/P&gt;

&lt;P&gt;My code to make the chart is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart&amp;gt;
  &amp;lt;searchString&amp;gt;sourcetype="cron_BalanceEmail" NOT host="*.bmp2.*" earliest=-7d@d latest=-0d@d sent (\[BalanceEmail\] OR \[null\])   | rex field=_raw "\w+\] ?(?&amp;amp;lt;TotalEmailsSent&amp;amp;gt;[\d]+) of (?&amp;amp;lt;TotalEmailsToSend&amp;amp;gt;[\d]+) of email notification sent\." | rex field=source "/(?&amp;amp;lt;registrar&amp;amp;gt;[^/]+)/[^/]+/[^/]+$" | timechart sum(TotalEmailsToSend) as TotalEmailsToSend sum(TotalEmailsSent) as TotalEmailsSent by registrar&amp;lt;/searchString&amp;gt;
  &amp;lt;title&amp;gt;Balance Emails Combined - 7 days&amp;lt;/title&amp;gt;
  &amp;lt;earliestTime&amp;gt;0&amp;lt;/earliestTime&amp;gt;
  &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
  &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisEnd&amp;lt;/option&amp;gt;
&amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2012 20:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25198#M957</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-04-11T20:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25199#M958</link>
      <description>&lt;P&gt;Yeah, try tacking a table command on the end of your search string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table totalemailsent,totalemailtosend, *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2012 21:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25199#M958</guid>
      <dc:creator>tysonstewart</dc:creator>
      <dc:date>2012-04-11T21:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25200#M959</link>
      <description>&lt;P&gt;nay that didn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 22:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25200#M959</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-04-11T22:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25201#M960</link>
      <description>&lt;P&gt;Gotcha. Sorry, needed to read a little closer. You'll have to spell out all the column names, but the table command should still do what you're looking for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table _time,"TotalEmailsToSend: &amp;lt;registrar&amp;gt;","TotalEmailsSent: &amp;lt;registrar&amp;gt;",...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Casing and spaces matter.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 22:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25201#M960</guid>
      <dc:creator>tysonstewart</dc:creator>
      <dc:date>2012-04-11T22:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25202#M961</link>
      <description>&lt;P&gt;Tysonsteward, this works, but the time for some reason is really long.  Instead of the time just being a simple date like April 19 2012 it's long and drawn out like 2012-04-15T00:00:00:000-04:00...any idea why?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25202#M961</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-04-19T20:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25203#M962</link>
      <description>&lt;P&gt;Hmm. Unexpected. Well, you can counter that by using an eval before the table command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval Time=strftime(_time,"%a %b %e") | table Time,"TotalEmailsToSend: &amp;lt;registrar&amp;gt;",...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you can format your time however you please. A guide to strftime strings can be found at &lt;A href="http://strftime.org/"&gt;http://strftime.org/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 21:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25203#M962</guid>
      <dc:creator>tysonstewart</dc:creator>
      <dc:date>2012-04-19T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25204#M963</link>
      <description>&lt;P&gt;This is wonderful.  Works good.  I just need the year (2012) but I don't see this on the link.  Thanks for this.  I'll be taking some python training soon so any exposure is a +&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 21:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25204#M963</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-04-19T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25205#M964</link>
      <description>&lt;P&gt;also is the %e a mistake on your part?  It's not in the chart from the link you posted.  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 21:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25205#M964</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-04-19T21:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25206#M965</link>
      <description>&lt;P&gt;Interesting!  &lt;A href="http://www.velocityreviews.com/forums/t648500-why-e-not-in-time-strftime-directives.html"&gt;http://www.velocityreviews.com/forums/t648500-why-e-not-in-time-strftime-directives.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 21:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25206#M965</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-04-19T21:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25207#M966</link>
      <description>&lt;P&gt;Yeah, %e is just one of those weird ones. It works for me. I say try it, and if it doesn't, fall back on %d. %Y will give you a 4-digit year (it's near the bottom on that link).&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 22:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25207#M966</guid>
      <dc:creator>tysonstewart</dc:creator>
      <dc:date>2012-04-19T22:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Line up sources in chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25208#M967</link>
      <description>&lt;P&gt;This worked.  I missed that %Y.  Great stuff...thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 22:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Line-up-sources-in-chart/m-p/25208#M967</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-04-19T22:23:07Z</dc:date>
    </item>
  </channel>
</rss>

