<?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: Can we replace certain value in field ?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62506#M180203</link>
    <description>&lt;P&gt;Two things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You're not enclosing "yes" and "no" in quotes, so you're telling Splunk to use the values of the FIELDS "yes" and "no", not the actual strings.&lt;/LI&gt;
&lt;LI&gt;Why are you using multiple usernames? This confuses and annoys people.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Fri, 14 Dec 2012 09:44:39 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-12-14T09:44:39Z</dc:date>
    <item>
      <title>Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62499#M180196</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have a field called UniqueID which contains the following values..like A,B,C,D etc..Now For this field i want to replace D as 5 . how can i do it ??&lt;/P&gt;

&lt;P&gt;ie. i need like&lt;/P&gt;

&lt;P&gt;UniqueID&lt;BR /&gt;
A&lt;BR /&gt;
B&lt;BR /&gt;
C&lt;BR /&gt;
5&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62499#M180196</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-13T12:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62500#M180197</link>
      <description>&lt;P&gt;Hi rakesh&lt;/P&gt;

&lt;P&gt;looks like you're lost somewhere in splunk universe; on 24. Oct this years you asked the same &lt;A href="http://splunk-base.splunk.com/answers/63109/can-i-replace-the-_raw-data-with-my-own-data"&gt;http://splunk-base.splunk.com/answers/63109/can-i-replace-the-_raw-data-with-my-own-data&lt;/A&gt; and Ayn answered correct. &lt;/P&gt;

&lt;P&gt;So, just use the force and you'll be happy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers,&lt;/P&gt;

&lt;P&gt;MuS&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62500#M180197</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-12-13T12:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62501#M180198</link>
      <description>&lt;P&gt;Yeah Actually i have asekd about the data inside the field this time ?? i dnt want to change entire data ..only the Data "D" i want to change ..can you pls help on that .&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62501#M180198</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-13T13:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62502#M180199</link>
      <description>&lt;P&gt;this is exactly the same approach or you try &lt;/P&gt;

&lt;P&gt;... | rex mode=sed field=&lt;YOURFIELDNAME&gt; "s/#\d+//"&lt;/YOURFIELDNAME&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62502#M180199</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-12-13T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62503#M180200</link>
      <description>&lt;P&gt;Crudely, you could replace certain field values like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval UniqueID = if(UniqueID="D",5,UniqueID) | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the set of replacements grows larger you could set up a lookup table of original and replaced values.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62503#M180200</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-12-13T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62504#M180201</link>
      <description>&lt;P&gt;Yeah martin..this worked for me..thnx &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 18:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62504#M180201</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-13T18:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62505#M180202</link>
      <description>&lt;P&gt;Same thing?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval field1 = if(field2=field3,field4,field5) | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just insert fields as you like.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 08:28:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62505#M180202</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-12-14T08:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62506#M180203</link>
      <description>&lt;P&gt;Two things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You're not enclosing "yes" and "no" in quotes, so you're telling Splunk to use the values of the FIELDS "yes" and "no", not the actual strings.&lt;/LI&gt;
&lt;LI&gt;Why are you using multiple usernames? This confuses and annoys people.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 14 Dec 2012 09:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62506#M180203</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-12-14T09:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62507#M180204</link>
      <description>&lt;P&gt;go vote for this request &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/63129/splunkbase-feature-request"&gt;http://splunk-base.splunk.com/answers/63129/splunkbase-feature-request&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 10:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62507#M180204</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-12-14T10:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62508#M180205</link>
      <description>&lt;P&gt;You could also make use of an automatic lookup table. So have a csv file with the following:&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;UniqueID,Output&lt;BR /&gt;
A,A&lt;BR /&gt;
B,B&lt;BR /&gt;
C,C&lt;BR /&gt;
D,5&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Splunk will find the UniqueID and rename it to whatever is in the "Output" column.&lt;BR /&gt;
So you can totally rename any field you like.&lt;/P&gt;

&lt;P&gt;There's a tutorial here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt; &lt;BR /&gt;
to walk you through automatic lookups. &lt;/P&gt;

&lt;P&gt;I've only recently started using them, but they save a lot of hassle and shortens search strings drastically.&lt;/P&gt;

&lt;P&gt;If you need any help, just ask. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 11:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62508#M180205</guid>
      <dc:creator>watsm10</dc:creator>
      <dc:date>2012-12-14T11:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62509#M180206</link>
      <description>&lt;P&gt;I've no idea about what you're talking about now. The original question was regarding how to exchange one value in an event for another. What you're trying to transform it to now, I do not understand.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 12:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62509#M180206</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-12-14T12:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can we replace certain value in field ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62510#M180207</link>
      <description>&lt;P&gt;You're now handling MV fields? when did they slip into the equation? You might want to start another question... Also, I second Ayn's question about why you use so many usernames on here... every so often I get an email that one user has commented, then you delete it and post as another user?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 12:57:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-replace-certain-value-in-field/m-p/62510#M180207</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-14T12:57:12Z</dc:date>
    </item>
  </channel>
</rss>

