<?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 apply operator on a specific value in a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-operator-on-a-specific-value-in-a-table/m-p/433072#M123714</link>
    <description>&lt;P&gt;Just add this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval count=if(descrip="B", count/10, count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 27 Apr 2019 03:42:24 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-04-27T03:42:24Z</dc:date>
    <item>
      <title>How to apply operator on a specific value in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-operator-on-a-specific-value-in-a-table/m-p/433071#M123713</link>
      <description>&lt;P&gt;I'm trying to divide a specific value in a table by 10.  What is the best way to do this?&lt;/P&gt;

&lt;P&gt;My search:&lt;BR /&gt;
&lt;CODE&gt;(index=Wineventlog sourcetype="WinEventLog:security" EventCode=4740 OR (action=failure EventCode=4625 host=eee OR host=xyz (Failure_Reason="Unknown user name or bad password.")) OR (host=asd (EventCode=516 OR EventCode=411) NOT clientIP=10.10.10.10) NOT user="-") OR (index=fff sourcetype=www action=failure) &lt;BR /&gt;
| eval output=coalesce(userMsg, lockoutUser, user, sAMAccountName) &lt;BR /&gt;
| eval descrip=case(EventCode=4625, "A", EventCode=4740, "B", EventCode=411, "C", EventCode=516, D", EventCode="AVEN-FAIL", "E") &lt;BR /&gt;
| stats dc(output) as count by descrip&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I would like to divide only the count value in row B by 10.  Is this possible? &lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 02:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-operator-on-a-specific-value-in-a-table/m-p/433071#M123713</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-04-27T02:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply operator on a specific value in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-operator-on-a-specific-value-in-a-table/m-p/433072#M123714</link>
      <description>&lt;P&gt;Just add this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval count=if(descrip="B", count/10, count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Apr 2019 03:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-operator-on-a-specific-value-in-a-table/m-p/433072#M123714</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-27T03:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply operator on a specific value in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-operator-on-a-specific-value-in-a-table/m-p/433073#M123715</link>
      <description>&lt;P&gt;Thanks, that worked!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 03:56:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-operator-on-a-specific-value-in-a-table/m-p/433073#M123715</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-04-27T03:56:56Z</dc:date>
    </item>
  </channel>
</rss>

