<?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 to create a line chart with multiple series? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699508#M57345</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Giuseppe for your advice.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The second one works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The first one somehow only returns 4 lines of results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iris_Pi_0-1726729600038.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32703iF1C45CF308023F18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iris_Pi_0-1726729600038.png" alt="Iris_Pi_0-1726729600038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2024 07:06:52 GMT</pubDate>
    <dc:creator>Iris_Pi</dc:creator>
    <dc:date>2024-09-19T07:06:52Z</dc:date>
    <item>
      <title>How to create a line chart with multiple series?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699477#M57341</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have collected some firewall traffic data: two firewalls(fw1/fw2), each has two interfaces(ethernet1/1&amp;amp;2),&amp;nbsp; will collect rxbytes and txbytes every 5 minutes.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The raw data is showed as below:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;{"timestamp": 1726668551, "fwname": "fw1", "interface": "ethernet1/1", "rxbytes": 59947791867743, "txbytes": 37019023811192}&lt;BR /&gt;{"timestamp": 1726668551, "fwname": "fw1", "interface": "ethernet1/2", "rxbytes": 63755935850903, "txbytes": 32252936430552}&lt;BR /&gt;{"timestamp": 1726668551, "fwname": "fw2", "interface": "ethernet1/1", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726668551, "fwname": "fw2", "interface": "ethernet1/2", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726668851, "fwname": "fw1", "interface": "ethernet1/1", "rxbytes": 59948210937804, "txbytes": 37019791801583}&lt;BR /&gt;{"timestamp": 1726668851, "fwname": "fw1", "interface": "ethernet1/2", "rxbytes": 63755965708078, "txbytes": 32253021060643}&lt;BR /&gt;{"timestamp": 1726668851, "fwname": "fw2", "interface": "ethernet1/1", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726668851, "fwname": "fw2", "interface": "ethernet1/2", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726669151, "fwname": "fw1", "interface": "ethernet1/1", "rxbytes": 59948636904106, "txbytes": 37020560028933}&lt;BR /&gt;{"timestamp": 1726669151, "fwname": "fw1", "interface": "ethernet1/2", "rxbytes": 63756002542165, "txbytes": 32253111011234}&lt;BR /&gt;{"timestamp": 1726669151, "fwname": "fw2", "interface": "ethernet1/1", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726669151, "fwname": "fw2", "interface": "ethernet1/2", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726669451, "fwname": "fw1", "interface": "ethernet1/1", "rxbytes": 59949094737896, "txbytes": 37021330717977}&lt;BR /&gt;{"timestamp": 1726669451, "fwname": "fw1", "interface": "ethernet1/2", "rxbytes": 63756101313559, "txbytes": 32253199085252}&lt;BR /&gt;{"timestamp": 1726669451, "fwname": "fw2", "interface": "ethernet1/1", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726669451, "fwname": "fw2", "interface": "ethernet1/2", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726669752, "fwname": "fw1", "interface": "ethernet1/1", "rxbytes": 59949550987330, "txbytes": 37022105630147}&lt;BR /&gt;{"timestamp": 1726669752, "fwname": "fw1", "interface": "ethernet1/2", "rxbytes": 63756167141302, "txbytes": 32253286546113}&lt;BR /&gt;{"timestamp": 1726669752, "fwname": "fw2", "interface": "ethernet1/1", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726669752, "fwname": "fw2", "interface": "ethernet1/2", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726670052, "fwname": "fw1", "interface": "ethernet1/1", "rxbytes": 59949968397016, "txbytes": 37022870539739}&lt;BR /&gt;{"timestamp": 1726670052, "fwname": "fw1", "interface": "ethernet1/2", "rxbytes": 63756401499253, "txbytes": 32253380028970}&lt;BR /&gt;{"timestamp": 1726670052, "fwname": "fw2", "interface": "ethernet1/1", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;{"timestamp": 1726670052, "fwname": "fw2", "interface": "ethernet1/2", "rxbytes": 0, "txbytes": 0}&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Now I need to create one chart to show the value of "rxbytes" over time, with 4 series:&lt;BR /&gt;(series 1) fw1, interface1/1&lt;BR /&gt;(series 2) fw1, interface1/2&lt;BR /&gt;(series 3) fw2, interface1/1&lt;BR /&gt;(series 4) fw2, interface1/2&lt;BR /&gt;&lt;BR /&gt;But I have problem to compose the SPL statement for this purpose. can you please help here? thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 02:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699477#M57341</guid>
      <dc:creator>Iris_Pi</dc:creator>
      <dc:date>2024-09-19T02:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart with multiple series?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699500#M57342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269035"&gt;@Iris_Pi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;supponing that the _time of your events is the Timestamp field, you have two solutions:&lt;/P&gt;&lt;P&gt;1) using stats (supponing a span of 1 hour):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| bin span=1h _time
| stats sum(rxbytes) AS rxbytes BY fwname interface&lt;/LI-CODE&gt;&lt;P&gt;2) using timechart (supponing a span of 1 hour):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval col=fwname.", "interface
| timechart span=1h sum(rxbytes) AS rxbytes BY col&lt;/LI-CODE&gt;&lt;P&gt;I prefer the first one.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 06:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699500#M57342</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-19T06:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart with multiple series?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699508#M57345</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Giuseppe for your advice.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The second one works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The first one somehow only returns 4 lines of results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iris_Pi_0-1726729600038.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32703iF1C45CF308023F18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iris_Pi_0-1726729600038.png" alt="Iris_Pi_0-1726729600038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 07:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699508#M57345</guid>
      <dc:creator>Iris_Pi</dc:creator>
      <dc:date>2024-09-19T07:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart with multiple series?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699515#M57348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269035"&gt;@Iris_Pi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the first solution requires that you always have both fwname and interface fields.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 07:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-line-chart-with-multiple-series/m-p/699515#M57348</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-09-19T07:25:29Z</dc:date>
    </item>
  </channel>
</rss>

