<?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: Want to replace the field value name in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/660388#M227973</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225469"&gt;@ramkyreddy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what exactly is your requirement?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval sku = if(name="",substr(kit,0,5),substr(name,0,5))
| eval sku=case(sku="NAC-D","ANT-P",sku="DHV-K","ABD-U",true(),sku)&lt;/LI-CODE&gt;&lt;P&gt;the search should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 12:04:19 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-10-11T12:04:19Z</dc:date>
    <item>
      <title>Want to replace the field value name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/660386#M227972</link>
      <description>&lt;TABLE width="351"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="145"&gt;Name&lt;/TD&gt;
&lt;TD width="55"&gt;sku&lt;/TD&gt;
&lt;TD width="151"&gt;kit&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE width="351"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="145"&gt;NAC-D-CDSK-DLS-05.90&lt;/TD&gt;
&lt;TD width="55"&gt;NAC-D&lt;/TD&gt;
&lt;TD width="151"&gt;HJA-JEOE-DNDN-94.4.0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;This my data, I want to replace&amp;nbsp; with NAC-D to ANT-P for multiple values&lt;BR /&gt;this is my search query&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval sku = if(name=="",substr(kit,0,5),substr(name,0,5))
| eval sku=case(sku =="NAC-D","ANT-P ",sku =="DHV-K","ABD-U",true(),sku)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/660386#M227972</guid>
      <dc:creator>ramkyreddy</dc:creator>
      <dc:date>2023-10-11T12:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Want to replace the field value name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/660388#M227973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225469"&gt;@ramkyreddy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what exactly is your requirement?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval sku = if(name="",substr(kit,0,5),substr(name,0,5))
| eval sku=case(sku="NAC-D","ANT-P",sku="DHV-K","ABD-U",true(),sku)&lt;/LI-CODE&gt;&lt;P&gt;the search should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/660388#M227973</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-10-11T12:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Want to replace the field value name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/669014#M229475</link>
      <description>&lt;P&gt;thanks,&amp;nbsp; I got expected&amp;nbsp; output&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 13:40:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/669014#M229475</guid>
      <dc:creator>ramkyreddy</dc:creator>
      <dc:date>2023-11-17T13:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Want to replace the field value name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/669073#M229493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225469"&gt;@ramkyreddy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 06:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-replace-the-field-value-name/m-p/669073#M229493</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-18T06:47:47Z</dc:date>
    </item>
  </channel>
</rss>

