<?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 &amp;quot;timechart span=1day&amp;quot; for 3 different fields by audio vs video in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448743#M172394</link>
    <description>&lt;P&gt;Try like this (update the functions used in timechart per your need)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
| timechart span=1d sum(Jabber_for_Mac) as Jabber_for_Mac sum(Jabber_for_iOS) as Jabber_for_iOS  sum(Jabber_for_TAB) as Jabber_for_TAB by callMediaType
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The output will have fields like &lt;CODE&gt;Jabber_for_Mac:audio&lt;/CODE&gt;, &lt;CODE&gt;Jabber_for_Mac:video&lt;/CODE&gt;...&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 19:08:49 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-03-18T19:08:49Z</dc:date>
    <item>
      <title>Need "timechart span=1day" for 3 different fields by audio vs video</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448740#M172391</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;

&lt;P&gt;I would like to come up with a  "timechart span=1d" with multiseries mode with audio vs video. below are the fields i have extracted from logs.&lt;/P&gt;

&lt;P&gt;callMediaType   Jabber_for_Mac  Jabber_for_iOS  Jabber_for_TAB&lt;BR /&gt;
audio   5752    23  4&lt;BR /&gt;
video   1955    78  12&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448740#M172391</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2020-09-29T23:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need "timechart span=1day" for 3 different fields by audio vs video</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448741#M172392</link>
      <description>&lt;P&gt;What search do you have so far? Have you tried something like this?&lt;BR /&gt;
    | timechart span=1d mode(audio) mode(video)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 18:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448741#M172392</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2019-03-18T18:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need "timechart span=1day" for 3 different fields by audio vs video</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448742#M172393</link>
      <description>&lt;P&gt;I have below search so far.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;cdr_and_cmr_events&lt;/CODE&gt; ( globalCallId_ClusterID="&lt;EM&gt;AMR&lt;/EM&gt;")&lt;BR /&gt;
| sort 0 + dateTimeConnect | eval durationStr=tostring(duration,"duration") &lt;BR /&gt;
| stats min(_time) as _time list(callMediaType) as callMediaType list(callingPartyUnicodeLoginUserID) as callingPartyUnicodeLoginUserID list(destDeviceName) as destDeviceName max(_time) as detailLatest list(deviceName) as deviceName list(device_name) as device_name list(device_type) as device_type list(finalCalledPartyUnicodeLoginUserID) as finalCalledPartyUnicodeLoginUserID list(origDeviceName) as origDeviceName 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;&lt;BR /&gt;
| fields _time callMediaType destDeviceName origDeviceName|stats count(eval(match(destDeviceName,"CSF"))) as "CSFA1" count(eval(match(origDeviceName,"CSF"))) as "CSFB1" count(eval(match(destDeviceName,"TCT"))) as "TCTA1" count(eval(match(origDeviceName,"TCT"))) as "TCTB1" count(eval(match(destDeviceName,"TAB"))) as "TABA1" count(eval(match(origDeviceName,"TAB"))) as "TABB1" by callMediaType&lt;BR /&gt;
|eval CSF=CSFA1+CSFB1, TCT=TCTA1+TCTB1, TAB=TABA1+TABB1 |rename CSF as Jabber_for_Mac, TCT as Jabber_for_iOS, TAB as Jabber_for_TAB|fields callMediaType Jabber_for_Mac Jabber_for_iOS Jabber_for_TAB&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448742#M172393</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2020-09-29T23:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need "timechart span=1day" for 3 different fields by audio vs video</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448743#M172394</link>
      <description>&lt;P&gt;Try like this (update the functions used in timechart per your need)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
| timechart span=1d sum(Jabber_for_Mac) as Jabber_for_Mac sum(Jabber_for_iOS) as Jabber_for_iOS  sum(Jabber_for_TAB) as Jabber_for_TAB by callMediaType
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The output will have fields like &lt;CODE&gt;Jabber_for_Mac:audio&lt;/CODE&gt;, &lt;CODE&gt;Jabber_for_Mac:video&lt;/CODE&gt;...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 19:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-quot-timechart-span-1day-quot-for-3-different-fields-by/m-p/448743#M172394</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-03-18T19:08:49Z</dc:date>
    </item>
  </channel>
</rss>

