<?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 transform command after timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/transform-command-after-timechart/m-p/433140#M123716</link>
    <description>&lt;P&gt;Is it possible to do an eval after using timechart?  I want to modify the count values in column A by dividing those values by 10.  My query below is not performing the operator on column A.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=Wineventlog sourcetype="WinEventLog:security" EventCode=4740 OR (action=failure EventCode=4625 host=eee OR host=xyz) OR (host=asd (EventCode=516 OR EventCode=411) NOT clientIP=10.10.10.10) NOT user="-") OR (index=fff action=failure) 
| eval output=coalesce(userMsg, lockoutUser, user, sAMAccountName) 
| eval descrip=case(EventCode=4625, "A", EventCode=4740, "B", EventCode=411, "C", EventCode=516, D", EventCode="AVEN-FAIL", "E") 
| timechart span=1h dc(output) as count by descrip
|eval count=if(descrip="A", count/10, count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 27 Apr 2019 17:43:56 GMT</pubDate>
    <dc:creator>dyeo</dc:creator>
    <dc:date>2019-04-27T17:43:56Z</dc:date>
    <item>
      <title>transform command after timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transform-command-after-timechart/m-p/433140#M123716</link>
      <description>&lt;P&gt;Is it possible to do an eval after using timechart?  I want to modify the count values in column A by dividing those values by 10.  My query below is not performing the operator on column A.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=Wineventlog sourcetype="WinEventLog:security" EventCode=4740 OR (action=failure EventCode=4625 host=eee OR host=xyz) OR (host=asd (EventCode=516 OR EventCode=411) NOT clientIP=10.10.10.10) NOT user="-") OR (index=fff action=failure) 
| eval output=coalesce(userMsg, lockoutUser, user, sAMAccountName) 
| eval descrip=case(EventCode=4625, "A", EventCode=4740, "B", EventCode=411, "C", EventCode=516, D", EventCode="AVEN-FAIL", "E") 
| timechart span=1h dc(output) as count by descrip
|eval count=if(descrip="A", count/10, count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Apr 2019 17:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transform-command-after-timechart/m-p/433140#M123716</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-04-27T17:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: transform command after timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transform-command-after-timechart/m-p/433141#M123717</link>
      <description>&lt;P&gt;quick and dirty 2 steps process will be something like that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=Wineventlog sourcetype="WinEventLog:security" EventCode=4740 OR (action=failure EventCode=4625 host=eee OR host=xyz) OR (host=asd (EventCode=516 OR EventCode=411) NOT clientIP=10.10.10.10) NOT user="-") OR (index=fff action=failure) 
 | eval output=coalesce(userMsg, lockoutUser, user, sAMAccountName) 
 | eval descrip=case(EventCode=4625, "A", EventCode=4740, "B", EventCode=411, "C", EventCode=516, D", EventCode="AVEN-FAIL", "E") 
  | bin span=1h _time
| stats dc(output) as unique_output by descrip _time
| eval unique_output = if(descrip=="A", unique_output/10, unique_output)
 | timechart span=1h sum(unique_output) as tot_count by descrip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 18:02:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transform-command-after-timechart/m-p/433141#M123717</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-04-27T18:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: transform command after timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transform-command-after-timechart/m-p/433142#M123718</link>
      <description>&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 18:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transform-command-after-timechart/m-p/433142#M123718</guid>
      <dc:creator>dyeo</dc:creator>
      <dc:date>2019-04-27T18:58:37Z</dc:date>
    </item>
  </channel>
</rss>

