<?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: How to fake field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fake-field-values/m-p/84678#M21588</link>
    <description>&lt;P&gt;You can use a lookup.  &lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsfromexternaldatasources" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So the search would be something like: &lt;CODE&gt;foo_search| lookup ldapLookup err OUTPUT description | top description&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2012 15:53:46 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2012-10-09T15:53:46Z</dc:date>
    <item>
      <title>How to fake field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fake-field-values/m-p/84677#M21587</link>
      <description>&lt;P&gt;In our logs I will get field values like&lt;BR /&gt;
err=0&lt;BR /&gt;
err=1&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
err=49&lt;/P&gt;

&lt;P&gt;I am able to get the results when run search against "err" field. showing table as below&lt;BR /&gt;
err count percent&lt;BR /&gt;
0    10   100.00%&lt;/P&gt;

&lt;P&gt;I want to show the results as &lt;BR /&gt;
err  count percent&lt;BR /&gt;
Success 10 100.00%&lt;/P&gt;

&lt;P&gt;How can I rename the values in fields,is it possible if  fields value is 0 then show  it as "Success" &lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fake-field-values/m-p/84677#M21587</guid>
      <dc:creator>splunkatl</dc:creator>
      <dc:date>2012-10-09T15:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to fake field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fake-field-values/m-p/84678#M21588</link>
      <description>&lt;P&gt;You can use a lookup.  &lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsfromexternaldatasources" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So the search would be something like: &lt;CODE&gt;foo_search| lookup ldapLookup err OUTPUT description | top description&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fake-field-values/m-p/84678#M21588</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-10-09T15:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to fake field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fake-field-values/m-p/84679#M21589</link>
      <description>&lt;P&gt;this works awesome. Thanks for prompt response&lt;BR /&gt;
Here are the Steps I followed &lt;BR /&gt;
1)Created ldap_errcodes.csv as below &lt;BR /&gt;
err,ldaperr_description&lt;BR /&gt;
1,Operations error&lt;BR /&gt;
2,Protocol error&lt;BR /&gt;
2)uploaded this file to Manger&amp;gt;Lookups&amp;gt;Look up table files&lt;BR /&gt;
3) gave the search&lt;BR /&gt;
err| lookup ldap_errcodes.csv  err OUTPUT ldaperr_description |top err,ldaperr_description&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fake-field-values/m-p/84679#M21589</guid>
      <dc:creator>splunkatl</dc:creator>
      <dc:date>2020-09-28T12:35:40Z</dc:date>
    </item>
  </channel>
</rss>

