<?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 Replacing Field Value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Replacing-Field-Value/m-p/606470#M210936</link>
    <description>&lt;P&gt;Hello, I have some field values which I am unable to replace with the 'replace' command in the csv file. I have Power States of servers which are Powered On and Powered Off and there are some fields which have both powered on and powered off status like:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;PoweredOn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;PoweredOff&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="77px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="77px"&gt;&lt;P&gt;poweredOn&lt;/P&gt;&lt;P&gt;poweredOff&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;poweredOn poweredOff suspended&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;poweredOff PoweredOn poweredOff&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to change the field value of "poweredOn poweredOff suspended" with&lt;BR /&gt;|replace&amp;nbsp; "*poweredOff poweredOn suspended*" with "*Suspended*"&lt;BR /&gt;but when I change the command with&lt;BR /&gt;|replace&amp;nbsp; "*poweredOn poweredOff*" with "*PoweredOn*"&lt;BR /&gt;it doenst reflect. Can anyone tell me how to replace these?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 09:52:48 GMT</pubDate>
    <dc:creator>beepbop</dc:creator>
    <dc:date>2022-07-21T09:52:48Z</dc:date>
    <item>
      <title>Replacing Field Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replacing-Field-Value/m-p/606470#M210936</link>
      <description>&lt;P&gt;Hello, I have some field values which I am unable to replace with the 'replace' command in the csv file. I have Power States of servers which are Powered On and Powered Off and there are some fields which have both powered on and powered off status like:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;PoweredOn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;PoweredOff&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="77px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="77px"&gt;&lt;P&gt;poweredOn&lt;/P&gt;&lt;P&gt;poweredOff&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;poweredOn poweredOff suspended&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;server name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;poweredOff PoweredOn poweredOff&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to change the field value of "poweredOn poweredOff suspended" with&lt;BR /&gt;|replace&amp;nbsp; "*poweredOff poweredOn suspended*" with "*Suspended*"&lt;BR /&gt;but when I change the command with&lt;BR /&gt;|replace&amp;nbsp; "*poweredOn poweredOff*" with "*PoweredOn*"&lt;BR /&gt;it doenst reflect. Can anyone tell me how to replace these?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 09:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replacing-Field-Value/m-p/606470#M210936</guid>
      <dc:creator>beepbop</dc:creator>
      <dc:date>2022-07-21T09:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Field Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replacing-Field-Value/m-p/606476#M210940</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s/poweredOn poweredOff suspended/Suspended/g"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Jul 2022 11:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replacing-Field-Value/m-p/606476#M210940</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-21T11:05:19Z</dc:date>
    </item>
  </channel>
</rss>

