<?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 edit my search to output results to separate rows based on multiple values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118759#M31758</link>
    <description>&lt;P&gt;Here you go :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="atti" sourcetype="strongmail" source="/data1/strongmail/log/strongmail-failed.log" | stats count(eval(mailingclass=="smtpvhost1.yp.com" OR mailingclass=="smtpvhost2.yp.com" OR mailingclass=="smtpvhost3.yp.com")) as Consumer count(eval(mailingclass="smtpvhost1.adsolutions.yp.com" OR mailingclass="smtpvhost2.adsolutions.yp.com" OR mailingclass="smtpvhost3.adsolutions.yp.com")) as Advertiser |eval Organisation=mvappend("Consumer","advertiser")|eval Failed=mvappend(Consumer,Advertiser)|table Organisation Failed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 23 May 2015 00:00:16 GMT</pubDate>
    <dc:creator>stephanefotso</dc:creator>
    <dc:date>2015-05-23T00:00:16Z</dc:date>
    <item>
      <title>How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118753#M31752</link>
      <description>&lt;P&gt;Hi - I have been trying to get this search below to result in separate rows depending on the values.  I have the information below:&lt;/P&gt;

&lt;P&gt;My current search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="atti" sourcetype="strongmail" source="/data1/strongmail/log/strongmail-failed.log" | chart count(mailingclass) as NumberFailed by mailingclass 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which results in:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;mailingclass   NumberFailed&lt;/STRONG&gt;&lt;BR /&gt;
smtpvhost1.adsolutions.yp.com   136&lt;BR /&gt;
smtpvhost1.yp.com   131&lt;BR /&gt;
smtpvhost3.yp.com   124&lt;BR /&gt;
smtpvhost2.adsolutions.yp.com   28&lt;BR /&gt;
smtpvhost3.adsolutions.yp.com   8&lt;BR /&gt;
smtpvhost2.yp.com   2&lt;/P&gt;

&lt;P&gt;I want to get two rows:&lt;/P&gt;

&lt;P&gt;first row "Consumer" where &lt;BR /&gt;
mailingclass="smtpvhost1.yp.com" OR mailingclass="smtpvhost2.yp.com" OR mailingclass="smtpvhost3.yp.com"&lt;/P&gt;

&lt;P&gt;second row "Advertiser" where&lt;BR /&gt;
mailingclass="smtpvhost1.adsolutions.yp.com" OR mailingclass="smtpvhost2.adsolutions.yp.com" OR mailingclass="smtpvhost3.adsolutions.yp.com"&lt;/P&gt;

&lt;P&gt;Now I want to only have two total rows.  an example would be something like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ORGANIZATION Failed&lt;/STRONG&gt;&lt;BR /&gt;
Consumer              172&lt;BR /&gt;
Advertiser             257&lt;/P&gt;

&lt;P&gt;Any help would be great, this is so much easier in SQL, I am having issues all day in SPLUNK. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 22:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118753#M31752</guid>
      <dc:creator>rajadatta</dc:creator>
      <dc:date>2015-05-20T22:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118754#M31753</link>
      <description>&lt;P&gt;Here you go&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="atti" sourcetype="strongmail" source="/data1/strongmail/log/strongmail-failed.log" | stats count(eval(mailingclass="smtpvhost1.yp.com" OR mailingclass="smtpvhost2.yp.com" OR mailingclass="smtpvhost3.yp.com") as Consumer  count(eval(mailingclass="smtpvhost1.adsolutions.yp.com" OR mailingclass="smtpvhost2.adsolutions.yp.com" OR mailingclass="smtpvhost3.adsolutions.yp.com) as Advertiser)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2015 23:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118754#M31753</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-05-20T23:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118755#M31754</link>
      <description>&lt;P&gt;thanks for the answer  ran into some issues with some parenthesis, but I got it to work, thanks so much:&lt;/P&gt;

&lt;P&gt;index="atti" sourcetype="strongmail" source="/data1/strongmail/log/strongmail-failed.log" | stats count(eval(mailingclass=="smtpvhost1.yp.com" OR mailingclass=="smtpvhost2.yp.com" OR mailingclass=="smtpvhost3.yp.com"&lt;STRONG&gt;))&lt;/STRONG&gt; as Consumer count(eval(mailingclass="smtpvhost1.adsolutions.yp.com" OR mailingclass="smtpvhost2.adsolutions.yp.com" OR mailingclass="smtpvhost3.adsolutions.yp.com"&lt;STRONG&gt;))&lt;/STRONG&gt; as Advertiser&lt;/P&gt;

&lt;P&gt;Is it easy to manipulate this into a chart to see comparisons over time?&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 00:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118755#M31754</guid>
      <dc:creator>rajadatta</dc:creator>
      <dc:date>2015-05-21T00:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118756#M31755</link>
      <description>&lt;P&gt;Yes of course! even with the stats command you can see comparison over time:&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="atti" sourcetype="strongmail" source="/data1/strongmail/log/strongmail-failed.log" | stats count(eval(mailingclass=="smtpvhost1.yp.com" OR mailingclass=="smtpvhost2.yp.com" OR mailingclass=="smtpvhost3.yp.com")) as Consumer count(eval(mailingclass="smtpvhost1.adsolutions.yp.com" OR mailingclass="smtpvhost2.adsolutions.yp.com" OR mailingclass="smtpvhost3.adsolutions.yp.com")) as Advertiser by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index="atti" sourcetype="strongmail" source="/data1/strongmail/log/strongmail-failed.log" | timechart count(eval(mailingclass=="smtpvhost1.yp.com" OR mailingclass=="smtpvhost2.yp.com" OR mailingclass=="smtpvhost3.yp.com")) as Consumer count(eval(mailingclass="smtpvhost1.adsolutions.yp.com" OR mailingclass="smtpvhost2.adsolutions.yp.com" OR mailingclass="smtpvhost3.adsolutions.yp.com")) as Advertiser 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or ...&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 00:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118756#M31755</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-05-21T00:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118757#M31756</link>
      <description>&lt;P&gt;This is great.  Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 18:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118757#M31756</guid>
      <dc:creator>rajadatta</dc:creator>
      <dc:date>2015-05-21T18:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118758#M31757</link>
      <description>&lt;P&gt;This might be more complicated currently the results are like below:&lt;/P&gt;

&lt;P&gt;Consumer | Advertiser&lt;BR /&gt;
3232 | 2323&lt;/P&gt;

&lt;P&gt;From the initial query is there a way to get to just per row and not column.  The charts are not doing the correct comparison since it is not comparing to each other.&lt;/P&gt;

&lt;P&gt;More like:&lt;/P&gt;

&lt;P&gt;Organization | Failed&lt;BR /&gt;
Consumer | 3232&lt;BR /&gt;
Advertiser | 2323&lt;/P&gt;

&lt;P&gt;Thanks appreciate the help, my objective is to do be able to do a comparison in the end.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 21:48:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118758#M31757</guid>
      <dc:creator>rajadatta</dc:creator>
      <dc:date>2015-05-21T21:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118759#M31758</link>
      <description>&lt;P&gt;Here you go :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="atti" sourcetype="strongmail" source="/data1/strongmail/log/strongmail-failed.log" | stats count(eval(mailingclass=="smtpvhost1.yp.com" OR mailingclass=="smtpvhost2.yp.com" OR mailingclass=="smtpvhost3.yp.com")) as Consumer count(eval(mailingclass="smtpvhost1.adsolutions.yp.com" OR mailingclass="smtpvhost2.adsolutions.yp.com" OR mailingclass="smtpvhost3.adsolutions.yp.com")) as Advertiser |eval Organisation=mvappend("Consumer","advertiser")|eval Failed=mvappend(Consumer,Advertiser)|table Organisation Failed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 May 2015 00:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118759#M31758</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-05-23T00:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to output results to separate rows based on multiple values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118760#M31759</link>
      <description>&lt;P&gt;Thanks this was a huge help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 19:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-output-results-to-separate-rows-based/m-p/118760#M31759</guid>
      <dc:creator>rajadatta</dc:creator>
      <dc:date>2015-05-26T19:03:31Z</dc:date>
    </item>
  </channel>
</rss>

