<?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 map one string result to another string using splunk query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642822#M222641</link>
    <description>&lt;P&gt;I believe you could use a lookup table. Create a column that matches the extracted field and another column with the additional field information. something like&lt;/P&gt;&lt;P&gt;statuscode&amp;nbsp; &amp;nbsp; &amp;nbsp;bank&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (headers)&lt;BR /&gt;statuscodeUSB&amp;nbsp; &amp;nbsp; Usbank&lt;/P&gt;&lt;P&gt;statuscodeIND&amp;nbsp; &amp;nbsp; &amp;nbsp; Indianbank&lt;/P&gt;&lt;P&gt;See the docs:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Knowledge/Usefieldlookupstoaddinformationtoyourevents" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, have you tried the rename command? |&amp;nbsp;&lt;SPAN&gt;rename &amp;lt;wc-field&amp;gt; AS &amp;lt;wc-field&amp;gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 12:17:10 GMT</pubDate>
    <dc:creator>enzomialich</dc:creator>
    <dc:date>2023-05-10T12:17:10Z</dc:date>
    <item>
      <title>How to map one string result to another string using Splunk query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642820#M222639</link>
      <description>&lt;P&gt;for e.g.&lt;/P&gt;
&lt;P&gt;input :&amp;nbsp; &amp;nbsp;I am getting result in an table format like&amp;nbsp; statuscodeUSB&amp;nbsp; &amp;nbsp;35 but i wan to transform the result into some thing&amp;nbsp; like Us Bank&amp;nbsp; &amp;nbsp; 35.&lt;/P&gt;
&lt;P&gt;Basically I want to implement logic something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if&amp;nbsp;&amp;nbsp;statuscodeUSB&amp;nbsp; then&amp;nbsp; return Usbank&lt;/P&gt;
&lt;P&gt;if statuscodeIND then return indian bank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can anyone suggest smething on this&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 17:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642820#M222639</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-05-10T17:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to map one string result to another string using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642822#M222641</link>
      <description>&lt;P&gt;I believe you could use a lookup table. Create a column that matches the extracted field and another column with the additional field information. something like&lt;/P&gt;&lt;P&gt;statuscode&amp;nbsp; &amp;nbsp; &amp;nbsp;bank&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (headers)&lt;BR /&gt;statuscodeUSB&amp;nbsp; &amp;nbsp; Usbank&lt;/P&gt;&lt;P&gt;statuscodeIND&amp;nbsp; &amp;nbsp; &amp;nbsp; Indianbank&lt;/P&gt;&lt;P&gt;See the docs:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Knowledge/Usefieldlookupstoaddinformationtoyourevents" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, have you tried the rename command? |&amp;nbsp;&lt;SPAN&gt;rename &amp;lt;wc-field&amp;gt; AS &amp;lt;wc-field&amp;gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 12:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642822#M222641</guid>
      <dc:creator>enzomialich</dc:creator>
      <dc:date>2023-05-10T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to map one string result to another string using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642823#M222642</link>
      <description>&lt;P&gt;I tried with rename command but it was not working. The input format I shared i.e. actually the result of rex&amp;nbsp; expression.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 12:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642823#M222642</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-05-10T12:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to map one string result to another string using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642842#M222645</link>
      <description>&lt;P&gt;Assuming statuscodeUSB and statuscodeIND have been extract into a field called statuscode, you could do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval statuscode=case(statuscode="statuscodeUSB", "Usbank", statuscode="statuscodeIND", "indian bank", 1==1, statuscode)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 May 2023 13:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/642842#M222645</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-10T13:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to map one string result to another string using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643001#M222718</link>
      <description>it is working for only 1st value.</description>
      <pubDate>Thu, 11 May 2023 09:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643001#M222718</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-05-11T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to map one string result to another string using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643002#M222719</link>
      <description>&lt;P&gt;for 2nd&amp;nbsp; value it is&amp;nbsp; still displaying old value for e.g. i can see statuscodeIND not Indian bank after writing the eval expression. I&amp;nbsp; have one more question can eval expression works only for two values or more than&amp;nbsp; two values also.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 09:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643002#M222719</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-05-11T09:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to map one string result to another string using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643007#M222722</link>
      <description>&lt;P&gt;The case function will work for multiple values although there may be a line length limit (not sure what that might be), and the case function has to be all on one line. although it can wrap in some editors.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 10:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643007#M222722</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-11T10:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to map one string result to another string using splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643012#M222724</link>
      <description>&lt;P&gt;The above&amp;nbsp; query worked some how buy adding one more default value in the field called status Code.Not sure what is the concept behind that.Anyway&amp;nbsp; Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 10:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-map-one-string-result-to-another-string-using-Splunk/m-p/643012#M222724</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-05-11T10:56:32Z</dc:date>
    </item>
  </channel>
</rss>

