<?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: need timechart span=1d for 3 fields in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-timechart-span-1d-for-3-fields/m-p/452688#M42396</link>
    <description>&lt;P&gt;@splunkuseradmin,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;span&lt;/CODE&gt; in timechart splits the data across the time unit you specify and it just depends on &lt;CODE&gt;_time&lt;/CODE&gt; for timechart .&lt;BR /&gt;&lt;BR /&gt;
In your case, if you are able to see the data when you select &lt;CODE&gt;logarithmic&lt;/CODE&gt; scale,  then most probably count for ios and tab considerably low compared to count for Mac (scaling is linear ). You can verify that by looking at the statistics tab. Also the legends on the side of your chart should be visible for all fields.&lt;BR /&gt;
In addition to that, you can not use logarithmic scaling and stacked chart together. In short, your search is fine, just verify the count for ios &amp;amp;tab&lt;/P&gt;

&lt;P&gt;Here is a run anywhere search written in same way as yours &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal earliest=-5m|timechart count(eval(sourcetype=="splunkd")) as splunkd,count(eval(sourcetype=="splunkd_access")) as splunkd_access,count(eval(sourcetype=="splunkd_ui_access")) as splunkd_ui_access
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 24 Mar 2019 05:03:19 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-03-24T05:03:19Z</dc:date>
    <item>
      <title>need timechart span=1d for 3 fields</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-timechart-span-1d-for-3-fields/m-p/452687#M42395</link>
      <description>&lt;P&gt;Need timechart span=1d for "_time mac ios tab" with stacked bar chart&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;cdr_events&lt;/CODE&gt; ( globalCallId_ClusterID="&lt;EM&gt;AMR&lt;/EM&gt;" ) earliest=1/1/2019:00:00:00 latest=now()&lt;BR /&gt;
| sort 0 + dateTimeConnect | eval durationStr=tostring(duration,"duration") &lt;BR /&gt;
| stats min(_time) as _time list(callingPartyNumber) as callingPartyNumber list(cause_description) as cause_description list(destDeviceName) as destDeviceName list(dest_gateway) as dest_gateway max(_time) as detailLatest list(device_type) as device_type list(duration) as duration list(durationStr) as durationStr list(finalCalledPartyNumber) as finalCalledPartyNumber list(origDeviceName) as origDeviceName list(orig_gateway) as orig_gateway list(originalCalledPartyNumber) as originalCalledPartyNumber by globalCallID_callId globalCallID_callManagerId globalCallId_ClusterID &lt;BR /&gt;
| search device_type=jabber  | rename durationStr as duration &lt;BR /&gt;
| sort 0 - _time &lt;BR /&gt;
| fields _time destdevice origdevice&lt;BR /&gt;&lt;BR /&gt;
| timechart span=1d count(eval(match(destdevice,"CSF"))) as "CSFA1" count(eval(match(origdevice,"CSF"))) as "CSFB1" count(eval(match(destdevice,"TCT"))) as "TCTA1" count(eval(match(origdevice,"TCT"))) as "TCTB1" count(eval(match(destdevice,"TAB"))) as "TABA1" count(eval(match(origdevice,"TAB"))) as "TABB1" cont=f&lt;BR /&gt;
 | eval CSF=0,TCT=0,TAB=0 &lt;BR /&gt;
 | foreach CSF* [| eval Mac=CSF+&amp;lt;&amp;gt;]&lt;BR /&gt;
 | foreach TCT* [| eval iOS=TCT+&amp;lt;&amp;gt;]&lt;BR /&gt;
 | foreach TAB* [| eval TAB=TAB+&amp;lt;&amp;gt;] &lt;BR /&gt;
 | fields _time Mac iOS TAB&lt;/P&gt;

&lt;P&gt;I am getting a bar chart but only for mac not for ios and tab. if i try to format y-axis=log and general to side-by-side per day bars are working but not stacked bars&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-timechart-span-1d-for-3-fields/m-p/452687#M42395</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2020-09-29T23:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: need timechart span=1d for 3 fields</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-timechart-span-1d-for-3-fields/m-p/452688#M42396</link>
      <description>&lt;P&gt;@splunkuseradmin,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;span&lt;/CODE&gt; in timechart splits the data across the time unit you specify and it just depends on &lt;CODE&gt;_time&lt;/CODE&gt; for timechart .&lt;BR /&gt;&lt;BR /&gt;
In your case, if you are able to see the data when you select &lt;CODE&gt;logarithmic&lt;/CODE&gt; scale,  then most probably count for ios and tab considerably low compared to count for Mac (scaling is linear ). You can verify that by looking at the statistics tab. Also the legends on the side of your chart should be visible for all fields.&lt;BR /&gt;
In addition to that, you can not use logarithmic scaling and stacked chart together. In short, your search is fine, just verify the count for ios &amp;amp;tab&lt;/P&gt;

&lt;P&gt;Here is a run anywhere search written in same way as yours &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal earliest=-5m|timechart count(eval(sourcetype=="splunkd")) as splunkd,count(eval(sourcetype=="splunkd_access")) as splunkd_access,count(eval(sourcetype=="splunkd_ui_access")) as splunkd_ui_access
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Mar 2019 05:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-timechart-span-1d-for-3-fields/m-p/452688#M42396</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-03-24T05:03:19Z</dc:date>
    </item>
  </channel>
</rss>

