<?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: extract max count value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530616#M36045</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; yes but the counts are so small. I should have around 28k interfaces but the result is 6k&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 14:43:05 GMT</pubDate>
    <dc:creator>marco_massari11</dc:creator>
    <dc:date>2020-11-24T14:43:05Z</dc:date>
    <item>
      <title>extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530424#M36003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have thousands of csv file on my splunk by monitoring a local share. Each day the folder is replicated by new csv files (current day).The csv file are about switches and are all differents and contain for each one some informations about their interfaces (ip, interface name...). In my query I filter for some fileds to include only interfaces that I need. Ip and Interface name should be unique, so I think I should dedup like | dedup IP, Interface. Then I want to extract for each month the max count of those filtered Interfaces. My query is like this but it's incomplete:&lt;/P&gt;&lt;P&gt;index=appliance sourcetype=new field1=........&amp;nbsp;field2=........&amp;nbsp;field3=........&lt;/P&gt;&lt;P&gt;| dedup Ip, Interface (I don't know if is correct and if is what I need)&lt;/P&gt;&lt;P&gt;| ...?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 13:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530424#M36003</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2020-11-23T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530433#M36004</link>
      <description>&lt;P&gt;You say the query is incomplete, but don't say what is missing.&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;dedup&lt;/FONT&gt; command takes the first event for each unique set of Ip and Interface values.&amp;nbsp; It may be ignoring the events that contain the max value you seek.&amp;nbsp; If you will be using the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command to find a maximum value then using dedup is not only unneeded, but counter-productive.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 14:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530433#M36004</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-23T14:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530443#M36006</link>
      <description>&lt;P&gt;The query is incomplete beacuse I don't know how to proceed. Yes with dedup I lose old values, So how can I fix this?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 14:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530443#M36006</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2020-11-23T14:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530481#M36012</link>
      <description>&lt;P&gt;What are the desired results?&amp;nbsp; You say you want a max count so have you looked at the stats command?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 18:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530481#M36012</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-23T18:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530544#M36024</link>
      <description>&lt;P&gt;I want the max count of distinct Interfaces for each month. I tried sometthing like this:&lt;/P&gt;&lt;P&gt;index=network_appliance Hostname=** (sourcetype="old" OR sourcetype="new")&amp;nbsp;&lt;BR /&gt;| timechart max(Interface) as Total_max span=1mon&lt;/P&gt;&lt;P&gt;But I have not results&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 09:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530544#M36024</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2020-11-24T09:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530610#M36044</link>
      <description>&lt;P&gt;Is this what you need?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=network_appliance Hostname=** (sourcetype="old" OR sourcetype="new") 
| bin span=1mon _time
| stats dc(Interface) as if_count by _time
| timechart span=1mon max(if_count) as Total_max&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530610#M36044</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-24T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530616#M36045</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; yes but the counts are so small. I should have around 28k interfaces but the result is 6k&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530616#M36045</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2020-11-24T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530617#M36046</link>
      <description>&lt;P&gt;If you have 28,000 distinct interfaces, but Splunk finds only 6,000 then perhaps something is wrong with the data.&amp;nbsp; How are you arriving at the 28k figure?&amp;nbsp; Are all 28k reporting to Splunk consistently?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530617#M36046</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-24T14:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: extract max count value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530619#M36047</link>
      <description>&lt;P&gt;Yes beacuse I have a total count query which returns number of interfaces. Each Interface have an IP, so the couple Interface-IP is unique.&lt;/P&gt;&lt;P&gt;index=network_appliance Hostname=* (sourcetype="old" OR sourcetype="new")&lt;BR /&gt;| dedup Interface IP&lt;BR /&gt;| stats count(Interface)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/extract-max-count-value/m-p/530619#M36047</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2020-11-24T14:55:11Z</dc:date>
    </item>
  </channel>
</rss>

