<?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 How to replace specific field value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294755#M88957</link>
    <description>&lt;P&gt;I am trying to replace a specific field. I have a table that is like:&lt;/P&gt;

&lt;P&gt;Name       Street          Zip        Note&lt;BR /&gt;
John          Wall            123        hello&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
So I am basically trying to change the Note column. I was doing like:&lt;BR /&gt;
eval Note="changed note" WHERE Name="John"&lt;BR /&gt;
to grab that specific note column and not change all of them but when I try to run that it does not work.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 15:33:38 GMT</pubDate>
    <dc:creator>kdimaria</dc:creator>
    <dc:date>2017-08-18T15:33:38Z</dc:date>
    <item>
      <title>How to replace specific field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294755#M88957</link>
      <description>&lt;P&gt;I am trying to replace a specific field. I have a table that is like:&lt;/P&gt;

&lt;P&gt;Name       Street          Zip        Note&lt;BR /&gt;
John          Wall            123        hello&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
So I am basically trying to change the Note column. I was doing like:&lt;BR /&gt;
eval Note="changed note" WHERE Name="John"&lt;BR /&gt;
to grab that specific note column and not change all of them but when I try to run that it does not work.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 15:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294755#M88957</guid>
      <dc:creator>kdimaria</dc:creator>
      <dc:date>2017-08-18T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace specific field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294756#M88958</link>
      <description>&lt;P&gt;so you're trying to change the value of the &lt;STRONG&gt;Note&lt;/STRONG&gt; column when &lt;STRONG&gt;Name=John&lt;/STRONG&gt;?&lt;BR /&gt;
does this work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval Note=if(Name="John","changed note",Note)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294756#M88958</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-08-18T16:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace specific field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294757#M88959</link>
      <description>&lt;P&gt;Yes that works thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294757#M88959</guid>
      <dc:creator>kdimaria</dc:creator>
      <dc:date>2017-08-21T14:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace specific field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294758#M88960</link>
      <description>&lt;P&gt;I'm trying to do this exact same thing but my search doesn't seem to recognize when, for example Name="John." It sets the Z value to Note, regardless. I've tried changing the Z value and that changes, but when the X matches, it doesn't return Y, only Z. So it is returning Z and not just not doing the eval all together.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval MedRepoCloneMergeTime=if(Event="mock", "NA", MedRepoCloneMergeTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When X doesn't match, it also returns Z.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 21:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294758#M88960</guid>
      <dc:creator>cblanton</dc:creator>
      <dc:date>2019-07-24T21:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace specific field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294759#M88961</link>
      <description>&lt;P&gt;Have you checked that the fields are spelled correctly and capitalized properly and the field value is also correctly spelled/capped? I know it’s silly but it’s critical. The fields and values need to exist and need to be exact. Do you have example data?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 00:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-specific-field-value/m-p/294759#M88961</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2019-07-25T00:59:46Z</dc:date>
    </item>
  </channel>
</rss>

