<?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: Edit data In Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563085#M196182</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237165"&gt;@jokovitch&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204579"&gt;@anilchaithu&lt;/a&gt;&amp;nbsp;hinted, the correct search should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main
| eval Country=if(Fname="fname1","UK",Country), Phone=if(Fname="fname1","123","")
| table Fname Phone Country&lt;/LI-CODE&gt;&lt;P&gt;if it doesn't run, check the fieldname (fields are case sensitive).&lt;/P&gt;&lt;P&gt;If doesn't run, please describe results and what's error.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 14:25:22 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2021-08-12T14:25:22Z</dc:date>
    <item>
      <title>Edit data In Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563069#M196177</link>
      <description>&lt;P&gt;I have a data in Splunk like&lt;/P&gt;&lt;P&gt;index="main"&lt;/P&gt;&lt;TABLE border="1" width="44.44349215999122%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Fname&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;fname1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;USA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;fname1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;USA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;fname3&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;USA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add and change some data&lt;/P&gt;&lt;P&gt;where Fname="fname1"&amp;nbsp; I want to edit that Country = UK and add field of Phone =123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final data will be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="285.33333333333337px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="142.083px" height="25px"&gt;&lt;STRONG&gt;Fname&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="71.0833px"&gt;&lt;STRONG&gt;Phone &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="71.3333px" height="25px"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142.083px" height="25px"&gt;fname1&lt;/TD&gt;&lt;TD width="71.0833px"&gt;123&lt;/TD&gt;&lt;TD width="71.3333px" height="25px"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142.083px" height="25px"&gt;fname1&lt;/TD&gt;&lt;TD width="71.0833px"&gt;123&lt;/TD&gt;&lt;TD width="71.3333px" height="25px"&gt;UK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142.083px" height="25px"&gt;fname3&lt;/TD&gt;&lt;TD width="71.0833px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="71.3333px" height="25px"&gt;USA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How can I do that?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 13:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563069#M196177</guid>
      <dc:creator>jokovitch</dc:creator>
      <dc:date>2021-08-12T13:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data In Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563070#M196178</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237165"&gt;@jokovitch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use the below eval command for this task&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;eval Country = if(Fname="fname1", "UK", Fname), Phone= case(Fname="fname1", "123")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 13:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563070#M196178</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2021-08-12T13:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data In Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563078#M196180</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="main" |eval Phone= case(Fname="fname1", "123")&lt;/LI-CODE&gt;&lt;P&gt;I have tried this command , but nothing changed&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 13:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563078#M196180</guid>
      <dc:creator>jokovitch</dc:creator>
      <dc:date>2021-08-12T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data In Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563083#M196181</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237165"&gt;@jokovitch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;strange, try this.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="main" | eval Phone= case(like(Fname, "%fname1%", "123")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 14:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563083#M196181</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2021-08-12T14:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data In Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563085#M196182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237165"&gt;@jokovitch&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204579"&gt;@anilchaithu&lt;/a&gt;&amp;nbsp;hinted, the correct search should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main
| eval Country=if(Fname="fname1","UK",Country), Phone=if(Fname="fname1","123","")
| table Fname Phone Country&lt;/LI-CODE&gt;&lt;P&gt;if it doesn't run, check the fieldname (fields are case sensitive).&lt;/P&gt;&lt;P&gt;If doesn't run, please describe results and what's error.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 14:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563085#M196182</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-08-12T14:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data In Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563312#M196266</link>
      <description>&lt;P&gt;You need to change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="main" | eval Phone= case(like(Fname, "%fname1%", "123")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="main" | eval Phone= case(like(Fname, "%fname1%"), "123")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That still not change the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to put this query in another place then New Search screen ? Or maybe is there place that I need to mark to commit this data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 07:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/563312#M196266</guid>
      <dc:creator>jokovitch</dc:creator>
      <dc:date>2021-08-15T07:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data In Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/564213#M196532</link>
      <description>&lt;P&gt;Do you have any idea how to fix that ?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 12:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-data-In-Splunk/m-p/564213#M196532</guid>
      <dc:creator>jokovitch</dc:creator>
      <dc:date>2021-08-22T12:29:24Z</dc:date>
    </item>
  </channel>
</rss>

