<?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: Trying to remove certain strings in a aggregated operation in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475610#M192578</link>
    <description>&lt;P&gt;Just a few observations from what you've posted.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Consider putting this in double quotes: &lt;CODE&gt;Received request to change&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;For readability, make your stats say &lt;CODE&gt;stats count AS Volume by status,count&lt;/CODE&gt; Then you can use Volume later on with less confusion.&lt;/LI&gt;
&lt;LI&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; command destroys native fields and only give you aggregated fields it produces. So you cannot access REJECTED or CONFIRMED.&lt;/LI&gt;
&lt;LI&gt;Can you please post what you get after your &lt;CODE&gt;xyseries&lt;/CODE&gt; line and what you want to do with those values? Feel free to dummy up the data to hide confidential info.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Mon, 17 Feb 2020 21:32:23 GMT</pubDate>
    <dc:creator>jpolvino</dc:creator>
    <dc:date>2020-02-17T21:32:23Z</dc:date>
    <item>
      <title>Trying to remove certain strings in a aggregated operation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475609#M192577</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;From the below query&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I am trying to remove certain strings from a field "message" or find the a specific string seems does not working, tried including 
but the result still has values which has this message&lt;/LI&gt;
&lt;LI&gt;At the same time i tried using the  command to remove the strings which has  in the field message but still does not seem to work&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;index=apps&lt;BR /&gt;
sourcetype="pos-generic:prod" Received request to change status=CONFIRMED OR status=REJECTED&lt;BR /&gt;
partner_account_name="Level Up"&lt;BR /&gt;
| stats count by status, merchantId&lt;BR /&gt;
| xyseries merchantId, status, count&lt;BR /&gt;
| eval result = (REJECTED)/((CONFIRMED+REJECTED))*100&lt;BR /&gt;
| fillnull value=100 result&lt;BR /&gt;
| eval count = CONFIRMED + REJECTED&lt;BR /&gt;
| where count &amp;gt;= 10&lt;BR /&gt;
| where result &amp;gt;= 20&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475609#M192577</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-09-30T04:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to remove certain strings in a aggregated operation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475610#M192578</link>
      <description>&lt;P&gt;Just a few observations from what you've posted.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Consider putting this in double quotes: &lt;CODE&gt;Received request to change&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;For readability, make your stats say &lt;CODE&gt;stats count AS Volume by status,count&lt;/CODE&gt; Then you can use Volume later on with less confusion.&lt;/LI&gt;
&lt;LI&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; command destroys native fields and only give you aggregated fields it produces. So you cannot access REJECTED or CONFIRMED.&lt;/LI&gt;
&lt;LI&gt;Can you please post what you get after your &lt;CODE&gt;xyseries&lt;/CODE&gt; line and what you want to do with those values? Feel free to dummy up the data to hide confidential info.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 17 Feb 2020 21:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475610#M192578</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-02-17T21:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to remove certain strings in a aggregated operation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475611#M192579</link>
      <description>&lt;P&gt;So when I run the query mentioned above i get the following result&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://share.getcloudapp.com/KouWGRrx" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;The merchantID 1684264 has message "xyz" and also have REJECT count as 6. I verified all the REJECT of this merchantId has the same message.&lt;/P&gt;

&lt;P&gt;Now I am trying to execute the query as below&lt;/P&gt;

&lt;P&gt;index=apps&lt;BR /&gt;
sourcetype="pos-generic:prod" Received request to change status=CONFIRMED OR status=REJECTED AND message!="xyz"&lt;BR /&gt;
partner_account_name="Level Up"&lt;BR /&gt;
| stats count by status, merchantId&lt;BR /&gt;
| xyseries merchantId, status, count&lt;BR /&gt;
| eval result = (REJECTED)/((CONFIRMED+REJECTED))*100&lt;BR /&gt;
| fillnull value=100 result&lt;BR /&gt;
| eval count = CONFIRMED + REJECTED&lt;BR /&gt;
| where count &amp;gt;= 10&lt;BR /&gt;
| where result &amp;gt;= 20&lt;/P&gt;

&lt;P&gt;My expectation is not to show the result of merchantId = 1684264  as it has all the 6 REJECT count as this message (my expectation is getting fulfilled). When I was trying  yesterday it was not, may be I was doing something wrong.&lt;/P&gt;

&lt;P&gt;Now what I want to try is, instead of passing an exact string for the message field, i would want to pass something like message contains something like "item". So it might be "some items missing"  or "items not there". So i just want to use "item" as the common&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475611#M192579</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-09-30T04:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to remove certain strings in a aggregated operation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475612#M192580</link>
      <description>&lt;P&gt;I tried using  but it is not giving me any result&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 14:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475612#M192580</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-02-18T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to remove certain strings in a aggregated operation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475613#M192581</link>
      <description>&lt;P&gt;I tried using &lt;A href="https://answers.splunk.com/answers/479010/how-to-write-a-search-with-the-condition-if-field1.html"&gt;https://answers.splunk.com/answers/479010/how-to-write-a-search-with-the-condition-if-field1.html&lt;/A&gt; but no help either&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 15:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475613#M192581</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-02-18T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to remove certain strings in a aggregated operation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475614#M192582</link>
      <description>&lt;P&gt;ok i used something like&lt;BR /&gt;
| regex message != "item"&lt;/P&gt;

&lt;P&gt;not sure if this would have any further complication. Checking&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 15:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-remove-certain-strings-in-a-aggregated-operation/m-p/475614#M192582</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-02-18T15:47:08Z</dc:date>
    </item>
  </channel>
</rss>

