<?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 visualize count of messages between .. and .. MB, .. and .. MB etc.? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433405#M172689</link>
    <description>&lt;P&gt;Thanks, I added "by size" to make the visualization better.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | stats count(size) by size
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Mar 2019 12:34:09 GMT</pubDate>
    <dc:creator>svester</dc:creator>
    <dc:date>2019-03-13T12:34:09Z</dc:date>
    <item>
      <title>How to visualize count of messages between .. and .. MB, .. and .. MB etc.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433403#M172687</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
i want to see how many messages are send, which are between 0 and 1 mb, between 1MB and 2MB, 2 and 3 etc, but I can't even visualize 1 option  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have this: index, host source etc. &lt;BR /&gt;
| eval if((LENGTH &amp;gt;= 0 AND LENGTH &amp;lt;= 10000000), "Between 0MB en 1MB", "Rest")&lt;BR /&gt;
| stats count(LENGTH)&lt;/P&gt;

&lt;P&gt;Note: LENGTH= shown like this: [LENGTH=365] and is an interesting field (num), shown in bytes. &lt;/P&gt;

&lt;P&gt;So i have 2 questions:&lt;BR /&gt;
- I receive this error with above eval: *Error in 'eval' command: Type checking failed. 'AND' only takes boolean arguments. *&lt;BR /&gt;
What is wrong with this argument? &lt;BR /&gt;
- And can someone help me fixing this visualization? &lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 10:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433403#M172687</guid>
      <dc:creator>svester</dc:creator>
      <dc:date>2019-03-07T10:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to visualize count of messages between .. and .. MB, .. and .. MB etc.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433404#M172688</link>
      <description>&lt;P&gt;The first issue is that your eval syntax is not quite right. Use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval size=if((LENGTH &amp;gt;= 0 AND LENGTH &amp;lt;= 10000000), "Between 0MB en 1MB", "Rest")
| stats count(size)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;although &lt;CODE&gt;case&lt;/CODE&gt; may be a better choice in this scenario.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval size=case((LENGTH &amp;gt;= 0 AND LENGTH &amp;lt;= 10000000), "0MB - 1MB", (LENGTH &amp;gt;= 10000001 AND LENGTH &amp;lt;= 20000000), "1MB - 2MB",(LENGTH &amp;gt;= 20000001 AND LENGTH &amp;lt;= 30000000), "2MB - 3MB",1=1, "Bigger")
| stats count(size)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Mar 2019 11:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433404#M172688</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-07T11:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to visualize count of messages between .. and .. MB, .. and .. MB etc.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433405#M172689</link>
      <description>&lt;P&gt;Thanks, I added "by size" to make the visualization better.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | stats count(size) by size
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Mar 2019 12:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433405#M172689</guid>
      <dc:creator>svester</dc:creator>
      <dc:date>2019-03-13T12:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to visualize count of messages between .. and .. MB, .. and .. MB etc.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433406#M172690</link>
      <description>&lt;P&gt;Great, Glad to have helped.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 15:46:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-visualize-count-of-messages-between-and-MB-and-MB-etc/m-p/433406#M172690</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-13T15:46:15Z</dc:date>
    </item>
  </channel>
</rss>

