<?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 anyone explain what does these lookup statements mean ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586970#M204424</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Lookup" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;About the first question: &lt;STRONG&gt;update=True&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the lookup table is modified on disk while the search is running, real-time searches do not automatically reflect the update.&lt;/P&gt;&lt;P&gt;To do this, specify&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;update=true.&lt;/P&gt;&lt;P&gt;This does not apply to searches that are not real-time searches.&lt;/P&gt;&lt;P&gt;This implies that local=true.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Default:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;false&lt;/P&gt;&lt;P&gt;About the second question: &lt;STRONG&gt;difference between OUTPUT and OUTPUTNEW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When using the&amp;nbsp;&lt;/SPAN&gt;lookup&lt;SPAN&gt;&amp;nbsp;command, if an OUTPUT or OUTPUTNEW clause is not specified, all of the fields in the lookup table that are not the match fields are used as output fields. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the OUTPUT clause is specified, the output lookup fields overwrite existing fields. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the OUTPUTNEW clause is specified, the lookup is not performed for events in which the output fields already exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In few words:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;update=True is only for real-time searches,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;OUTPUT overrides existing fields, OUTPUTNEW no.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 10:48:04 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-03-01T10:48:04Z</dc:date>
    <item>
      <title>Can anyone explain what does these lookup statements mean ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586968#M204422</link>
      <description>&lt;P&gt;| lookup update=true SpamIntel_by_email_subject subject OUTPUT&lt;BR /&gt;| lookup update=true SpamIntel_by_email_subject_wildcard subject OUTPUTNEW&lt;BR /&gt;&lt;BR /&gt;What is update=true ?&lt;BR /&gt;What field it is comparing to update what ?&lt;BR /&gt;Whats the difference between between Output and Outputnew&lt;BR /&gt;&lt;BR /&gt;I didn't understand from the splunk's documentation well.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586968#M204422</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2022-03-01T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain what does these lookup statements mean ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586970#M204424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Lookup" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;About the first question: &lt;STRONG&gt;update=True&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the lookup table is modified on disk while the search is running, real-time searches do not automatically reflect the update.&lt;/P&gt;&lt;P&gt;To do this, specify&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;update=true.&lt;/P&gt;&lt;P&gt;This does not apply to searches that are not real-time searches.&lt;/P&gt;&lt;P&gt;This implies that local=true.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Default:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;false&lt;/P&gt;&lt;P&gt;About the second question: &lt;STRONG&gt;difference between OUTPUT and OUTPUTNEW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When using the&amp;nbsp;&lt;/SPAN&gt;lookup&lt;SPAN&gt;&amp;nbsp;command, if an OUTPUT or OUTPUTNEW clause is not specified, all of the fields in the lookup table that are not the match fields are used as output fields. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the OUTPUT clause is specified, the output lookup fields overwrite existing fields. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the OUTPUTNEW clause is specified, the lookup is not performed for events in which the output fields already exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In few words:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;update=True is only for real-time searches,&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;OUTPUT overrides existing fields, OUTPUTNEW no.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:48:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586970#M204424</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-01T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain what does these lookup statements mean ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586972#M204425</link>
      <description>&lt;P&gt;Is the 'subject' field of the lookup '&lt;SPAN&gt;SpamIntel_by_email_subject' getting updated , as a result of this command ?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:01:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586972#M204425</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2022-03-01T11:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain what does these lookup statements mean ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586975#M204428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;no, it's the opposite:&lt;/P&gt;&lt;P&gt;using OUTPUT option, if you already have from the main search a value in one of the fields in OUTPUT, it's ovewritten by the value of the lookup.&lt;/P&gt;&lt;P&gt;To override a value in a lookup, you have to use outputlookup but it's a different thing.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586975#M204428</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-01T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain what does these lookup statements mean ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586983#M204432</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In my lookup command after OUTPUT there is no field, and thats what makes me wonder what field will overwrite/write what...after comparing with what&lt;BR /&gt;Let me put the code&lt;BR /&gt;&lt;BR /&gt;| tstats `summariesonly` values(sourcetype) as sourcetype,&lt;BR /&gt;values(Email.src) as src,&lt;BR /&gt;values(Email.dest) as dest&lt;BR /&gt;from datamodel=Email.Email&lt;BR /&gt;by Email.subject&lt;BR /&gt;| `drop_dm_object_name("Email")`&lt;BR /&gt;| lookup update=true SpamIntel_by_email_subject subject OUTPUT&lt;BR /&gt;&lt;BR /&gt;What's the SPL doing where ?&lt;BR /&gt;Sorry&amp;nbsp; for the stupid question but this&amp;nbsp; particular lookup command usage confuses me .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 12:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586983#M204432</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2022-03-01T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone explain what does these lookup statements mean ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586988#M204434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;after OUTPUT you have to list the lookup fields you want, e.g.:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup update=true SpamIntel_by_email_subject subject OUTPUT field1 field2 field3&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 12:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-explain-what-does-these-lookup-statements-mean/m-p/586988#M204434</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-01T12:40:21Z</dc:date>
    </item>
  </channel>
</rss>

