<?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 automatically change a field value from lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657944#M227260</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233954"&gt;@MScottFoley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;only to complete the solution from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;that's perfect, you have to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;go in&amp;nbsp;[Settings &amp;gt; Lookups &amp;gt; Lookup definitions]&lt;/LI&gt;&lt;LI&gt;choose the lookup&lt;/LI&gt;&lt;LI&gt;flag Advanced Options&lt;/LI&gt;&lt;LI&gt;insert "WILDCARD" in Match Type&lt;/LI&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 06:31:52 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-09-19T06:31:52Z</dc:date>
    <item>
      <title>How to automatically change a field value from lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657914#M227245</link>
      <description>&lt;P&gt;I have logs with a Customer field where the name of the customer is not consistent.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; customer=Bobs Pizza&lt;BR /&gt;&amp;nbsp; customer=Bob's Pizza&lt;BR /&gt;&amp;nbsp; customer=Bobs Pizzeria&lt;BR /&gt;&lt;BR /&gt;I want to use an automatic lookup to change all to a standard name without needing to changing existing searches.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;customer_lookup.csv&lt;BR /&gt;&amp;nbsp; customer_name,standard_customer_name&lt;BR /&gt;&amp;nbsp; Bobs Pizza,Bob's Pizza&lt;BR /&gt;&amp;nbsp; Bobs Pizzeria,Bob's Pizza&lt;/P&gt;
&lt;P&gt;I am trying to do this with a lookup table in the search before I try to make it an automatic lookup.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| lookup customer_lookup customer_name as Customer output standard_customer_name AS Customer&lt;BR /&gt;&lt;BR /&gt;This lookup only works if the Customer returned in the search is actually in the lookup table.&amp;nbsp; So Customer="Bobs Pizza" is in the result, but Customer="Frank's&amp;nbsp; &amp;nbsp;Artichokes" is not.&amp;nbsp; I can't add all customers to the table.&amp;nbsp; I have tried many forms of the lookup.&amp;nbsp; I can get a list with the original Customer name and the standard customer name in one exists, but that won't work for current searches.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can this be done?&amp;nbsp; I would think it could cause problems since someone could add an automatic lookup to hide certain things if needed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 22:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657914#M227245</guid>
      <dc:creator>MScottFoley</dc:creator>
      <dc:date>2023-09-18T22:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically change a field value from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657919#M227248</link>
      <description>&lt;P&gt;You can create a lookup with a WILDCARD match type.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 18:56:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657919#M227248</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-09-18T18:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically change a field value from lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657944#M227260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233954"&gt;@MScottFoley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;only to complete the solution from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;that's perfect, you have to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;go in&amp;nbsp;[Settings &amp;gt; Lookups &amp;gt; Lookup definitions]&lt;/LI&gt;&lt;LI&gt;choose the lookup&lt;/LI&gt;&lt;LI&gt;flag Advanced Options&lt;/LI&gt;&lt;LI&gt;insert "WILDCARD" in Match Type&lt;/LI&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 06:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657944#M227260</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-19T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically change a field value from lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657952#M227262</link>
      <description>&lt;P&gt;You are overwriting Customer so if your lookup is not found, it will overwrite Customer&lt;/P&gt;&lt;P&gt;Do it like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup customer_lookup customer_name as Customer output standard_customer_name 
| eval Customer=coalesce(standard_customer_name, Customer)&lt;/LI-CODE&gt;&lt;P&gt;so, if your Customer does not exist in the lookup, it will return a null &lt;STRONG&gt;standard_customer_name&lt;/STRONG&gt; and then the coalesce will just use the original Customer&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 07:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657952#M227262</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-09-19T07:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically change a field value from lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657998#M227279</link>
      <description>&lt;P&gt;That is perfect.&amp;nbsp; I see now why it was not working before.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/657998#M227279</guid>
      <dc:creator>MScottFoley</dc:creator>
      <dc:date>2023-09-19T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically change a field value from lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/658000#M227280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233954"&gt;@MScottFoley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-change-a-field-value-from-lookup-table/m-p/658000#M227280</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-19T13:22:20Z</dc:date>
    </item>
  </channel>
</rss>

