<?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 add a fixed value into the stats count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274757#M82877</link>
    <description>&lt;P&gt;that worked, thank you&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 02:43:00 GMT</pubDate>
    <dc:creator>sunilkumarpk</dc:creator>
    <dc:date>2016-04-06T02:43:00Z</dc:date>
    <item>
      <title>How to add a fixed value into the stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274755#M82875</link>
      <description>&lt;P&gt;I am trying to have a single value panel. The search for the same is given below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host="prodserver-*" source="/var/log/some.log" "something happened" | stats count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to add a fixed value of 1000 to the count value. I tried to use eval and add the value to count but its not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I can add two fixed values like the one given below, but using "count" is not working.&lt;/P&gt;

&lt;P&gt;This works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host="prodserver-*" source="/var/log/some.log" "something happened" | eval totalCount = 1 + 1000 |stats max(totalCount)  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host="prodserver-*" source="/var/log/some.log" "something happened" | eval totalCount = count + 1000 |stats max(totalCount) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am new to Splunk so please forgive me if this is a silly question :).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 06:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274755#M82875</guid>
      <dc:creator>sunilkumarpk</dc:creator>
      <dc:date>2016-04-05T06:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a fixed value into the stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274756#M82876</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= host="prodserver-*" source="/var/log/some.log" "something happened" | stats count | eval count=count+1000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2016 14:56:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274756#M82876</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-04-05T14:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a fixed value into the stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274757#M82877</link>
      <description>&lt;P&gt;that worked, thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 02:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274757#M82877</guid>
      <dc:creator>sunilkumarpk</dc:creator>
      <dc:date>2016-04-06T02:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a fixed value into the stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274758#M82878</link>
      <description>&lt;P&gt;Hi @sunilkumarpk&lt;/P&gt;

&lt;P&gt;Glad you found an answer through @somesoni2. Please don't forget to resolve the post by clicking "Accept" directly below his answer. Thanks!&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-fixed-value-into-the-stats-count/m-p/274758#M82878</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-04-07T21:18:37Z</dc:date>
    </item>
  </channel>
</rss>

