<?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: eval by rows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478753#M134235</link>
    <description>&lt;P&gt;You should be able to do it like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval data = if(rowname=="two" AND data==0, replacementValue, data)
| ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Apr 2020 15:40:09 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-04-21T15:40:09Z</dc:date>
    <item>
      <title>eval by rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478752#M134234</link>
      <description>&lt;P&gt;i have a table data where in a row has 0's . i need to replace those 0 only for that row&lt;/P&gt;

&lt;P&gt;ex:&lt;/P&gt;

&lt;P&gt;rowname:data&lt;BR /&gt;
one:5&lt;BR /&gt;
two:0&lt;BR /&gt;
three:0&lt;BR /&gt;
four:5&lt;/P&gt;

&lt;P&gt;in this example i want to change 0 belonging to rowname="two" to a different value, only that row.&lt;BR /&gt;
how to achieve it..&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 14:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478752#M134234</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2020-04-21T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: eval by rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478753#M134235</link>
      <description>&lt;P&gt;You should be able to do it like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval data = if(rowname=="two" AND data==0, replacementValue, data)
| ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2020 15:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478753#M134235</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-21T15:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: eval by rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478754#M134236</link>
      <description>&lt;P&gt;Thanks, just one more thing, what if i have more than 1 columns , like data, data 1, date2... etc&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 15:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478754#M134236</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2020-04-21T15:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: eval by rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478755#M134237</link>
      <description>&lt;P&gt;Include the additional fields in the &lt;CODE&gt;if&lt;/CODE&gt; function.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 16:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-by-rows/m-p/478755#M134237</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-21T16:49:56Z</dc:date>
    </item>
  </channel>
</rss>

