<?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: stats command gives complete result in dashbaord not in alert in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185660#M53494</link>
    <description>&lt;P&gt;I don't seem to be able to reproduce that... if I do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats values(source) by sourcetype | sendemail to=me@me.me server=myserver subject=mvtest sendresults=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get all values of the multivalue field for the sources, just not in two rows like in the Splunk result without &lt;CODE&gt;sendmail&lt;/CODE&gt; but rather in one row separated by a space:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype   values(source)
...
splunkd      /opt/splunk/var/log/splunk/metrics.log /opt/splunk/var/log/splunk/splunkd.log
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Are you doing anything differently? What version are you on?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2014 12:29:13 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-03-13T12:29:13Z</dc:date>
    <item>
      <title>stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185659#M53493</link>
      <description>&lt;P&gt;Below query gives the results like :&lt;BR /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | stats values(SERVICENAME) as SERVICE by HOST

HOST  SERVICE
----- ------
h1    s1
      s12
h2    s2
      s23
h3    s3
      s56
h4    s4
h5    s4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When i use the &lt;STRONG&gt;sendemail&lt;/STRONG&gt; command to send this as alert it gives :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=* | stats values(SERVICENAME) as SERVICE by HOST | sendemail to="xx" ...

 HOST  SERVICE
 ----- ------
 h1   s1
 h2   s2
 h3   s3
 h4   s4
 h5   s4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am missing the complete results from my stats command. Please advise that i need to change 'sendmail.py' file to get complete results ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 09:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185659#M53493</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-03-13T09:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185660#M53494</link>
      <description>&lt;P&gt;I don't seem to be able to reproduce that... if I do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats values(source) by sourcetype | sendemail to=me@me.me server=myserver subject=mvtest sendresults=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get all values of the multivalue field for the sources, just not in two rows like in the Splunk result without &lt;CODE&gt;sendmail&lt;/CODE&gt; but rather in one row separated by a space:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype   values(source)
...
splunkd      /opt/splunk/var/log/splunk/metrics.log /opt/splunk/var/log/splunk/splunkd.log
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Are you doing anything differently? What version are you on?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 12:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185660#M53494</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-13T12:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185661#M53495</link>
      <description>&lt;P&gt;i am using version 6.  I am using the below search query. It doesnt give all the values of SERVICENAME.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | stats values(SERVICENAME) as SERVICE by HOST | sendemail to="xx@x.x" format=html subject=myresults sendresults=true smtp="smtp.xxx.com"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185661#M53495</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-03-14T05:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185662#M53496</link>
      <description>&lt;P&gt;Odd, the only difference I see is &lt;CODE&gt;format=html&lt;/CODE&gt;, but that's the default value.&lt;/P&gt;

&lt;P&gt;Are you seeing the same issue with the &lt;CODE&gt;_internal&lt;/CODE&gt; query I posted above?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 08:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185662#M53496</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-14T08:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185663#M53497</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I got the results in one row separated with space for the _internal query .&lt;BR /&gt; &lt;BR /&gt;
But , i still face the same issue for my search query, it takes only 1 value of the SERVICE , it skips the remaining values.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 09:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185663#M53497</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-03-14T09:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185664#M53498</link>
      <description>&lt;P&gt;Even odder &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; the &lt;CODE&gt;stats&lt;/CODE&gt; calls are identical except for different field names, so something more sneaky must be going on.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 09:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185664#M53498</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-14T09:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185665#M53499</link>
      <description>&lt;P&gt;Also, it works for me with some other sourcetype. but , the one that i am facing issue is with UDP data. &lt;BR /&gt;&lt;BR /&gt;
Also I am extracting SERVICE values using FIELD-EXTRACTOR&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I don't think that should be a problem for Splunk. Anyway when i stat the results it shows properly all the values of the SERVICE , but when I do the | sendemail it somehow skips. &lt;BR /&gt;Strange behavior.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 09:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185665#M53499</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-03-14T09:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185666#M53500</link>
      <description>&lt;P&gt;If that behaviour only occurs with a particular sourcetype it's probably best to post some sample data along with the configuration for that sourcetype.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 10:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185666#M53500</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-14T10:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: stats command gives complete result in dashbaord not in alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185667#M53501</link>
      <description>&lt;P&gt;Looks like you are having some issue with it being a multi value situation.  I would either us mvexpand to make results one to one per line before emailing. Or put it in a dashboard then schedule an email report such as pdf format of that dashboard on a schedule.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2014 14:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-command-gives-complete-result-in-dashbaord-not-in-alert/m-p/185667#M53501</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2014-03-16T14:55:38Z</dc:date>
    </item>
  </channel>
</rss>

