<?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: Appending lookup fields into search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599493#M208669</link>
    <description>&lt;P&gt;Thank you so much for responding &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;This is what a sample of the lookup would look like&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cidr description AssetId name netNamespace networkId &amp;nbsp; usertags&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;10.20.16.0/23&lt;/TD&gt;&lt;TD&gt;London(AD)&lt;/TD&gt;&lt;TD&gt;aaaa-cucuc-5460-9e-98888&lt;/TD&gt;&lt;TD&gt;AD-assets&lt;/TD&gt;&lt;TD&gt;default&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Wired|Server&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10.10.34.0/24&lt;/TD&gt;&lt;TD&gt;Cancun&lt;/TD&gt;&lt;TD&gt;bb0cuc-9181-51-8957-833357f2a1&lt;/TD&gt;&lt;TD&gt;Virtualization&lt;/TD&gt;&lt;TD&gt;default&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Wired|Server&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I get a "No results found". I know the search itself does give me results if I input a particular IP address as source, as I know that there's been remote access applications running on server.&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 20:07:57 GMT</pubDate>
    <dc:creator>weetabixsplunk</dc:creator>
    <dc:date>2022-05-26T20:07:57Z</dc:date>
    <item>
      <title>Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599480#M208662</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm a splunk noob here and I'm going nuts. I know this is an extremely simple search and I can't get it right.&lt;BR /&gt;I'm trying to create a search for remote access applications based on our firewall index.&lt;/P&gt;
&lt;P&gt;IP cidr will be pulled from a lookup file (network_assets.csv) and matching to the source ip from my events. There's fields from the lookup file that do not exist in the events.&amp;nbsp;I'm particullarly interested in adding this field called usertags (which is included in the lookup).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am using these links as a reference and I can't get it to work.&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-do-I-append-columns-to-a-search-via-inputlookup-where-the/m-p/402136" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/How-do-I-append-columns-to-a-search-via-inputlookup-where-the/m-p/402136&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=fw
| search appcat=Remote.Access
| search app!="RDP" AND app!="WMI.DCERPC"
| lookup network_assets.csv cidr
| eval cidr=src
| search usertags="*server*"
| table src dest app url appcat usertags&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;My search currently does not give me any results. Any help would be much appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 20:25:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599480#M208662</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2022-05-26T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599484#M208663</link>
      <description>&lt;P&gt;&lt;SPAN&gt;try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=fw&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| search appcat=Remote.Access&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| search app!="RDP" AND app!="WMI.DCERPC"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| lookup network_assets.csv cidr OUTPUT src&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| search usertags="*server*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table src dest app url appcat usertags&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 18:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599484#M208663</guid>
      <dc:creator>SinghK</dc:creator>
      <dc:date>2022-05-26T18:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599485#M208664</link>
      <description>&lt;P&gt;Are you sure that there is a column called cidr in your lookup? If you just run the following what do you see?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| inputlookup network_assets.csv&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 18:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599485#M208664</guid>
      <dc:creator>pbarbuto</dc:creator>
      <dc:date>2022-05-26T18:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599486#M208665</link>
      <description>&lt;P&gt;Have you set up advanced options for the lookup, specifically CIDR as the match type?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/Knowledge/Usefieldlookupstoaddinformationtoyourevents" target="_blank"&gt;Define a CSV lookup in Splunk Web - Splunk Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, you possibly want to change the lookup to this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup network_assets.csv cidr AS src&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 May 2022 18:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599486#M208665</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T18:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599487#M208666</link>
      <description>&lt;P&gt;I see the lookup itself with the following fields:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;cidr description AssetId name Namespace networkId tags usertags&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 18:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599487#M208666</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2022-05-26T18:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599488#M208667</link>
      <description>&lt;P&gt;I get a&amp;nbsp;&lt;SPAN&gt;Error in 'lookup' command: Cannot find the destination field 'src' in the lookup table 'network_assets.csv'.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 18:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599488#M208667</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2022-05-26T18:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599492#M208668</link>
      <description>&lt;P&gt;It would help to see a sample event or two and a sample row or two from the lookup file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would help immensely if you explained what is meant by "can't get it to work".&amp;nbsp; What results do you get and how do they not meet expectation?&lt;/P&gt;&lt;P&gt;If the lookup file contains CIDR addresses and the index does not then a lookup definition should be created so you can enable CIDR lookups.&amp;nbsp; If that's the case then let us know so we can go into detail on that.&lt;/P&gt;&lt;P&gt;FTR, search performance can be improved by moving the search commands into the base search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=fw appcat=Remote.Access app!="RDP" app!="WMI.DCERPC"
| lookup network_assets.csv cidr
| eval cidr=src
| search usertags="*server*"
| table src dest app url appcat usertags&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 May 2022 19:02:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599492#M208668</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-26T19:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599493#M208669</link>
      <description>&lt;P&gt;Thank you so much for responding &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;This is what a sample of the lookup would look like&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cidr description AssetId name netNamespace networkId &amp;nbsp; usertags&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;10.20.16.0/23&lt;/TD&gt;&lt;TD&gt;London(AD)&lt;/TD&gt;&lt;TD&gt;aaaa-cucuc-5460-9e-98888&lt;/TD&gt;&lt;TD&gt;AD-assets&lt;/TD&gt;&lt;TD&gt;default&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Wired|Server&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10.10.34.0/24&lt;/TD&gt;&lt;TD&gt;Cancun&lt;/TD&gt;&lt;TD&gt;bb0cuc-9181-51-8957-833357f2a1&lt;/TD&gt;&lt;TD&gt;Virtualization&lt;/TD&gt;&lt;TD&gt;default&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Wired|Server&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I get a "No results found". I know the search itself does give me results if I input a particular IP address as source, as I know that there's been remote access applications running on server.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 20:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599493#M208669</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2022-05-26T20:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599494#M208670</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I get a "No results found". I know the search itself does give me results if I input a particular IP address as source, as I know that there's been remote access applications running on server.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 19:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599494#M208670</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2022-05-26T19:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599495#M208671</link>
      <description>&lt;P&gt;try "&lt;SPAN&gt;| lookup network_assets.csv OUTPUT cidr AS src"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 19:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599495#M208671</guid>
      <dc:creator>pbarbuto</dc:creator>
      <dc:date>2022-05-26T19:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599499#M208673</link>
      <description>&lt;P&gt;Idiot me was doing it all wrong and that answer definitely helped! Thank you!! &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 20:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599499#M208673</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2022-05-26T20:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Appending lookup fields into search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599500#M208674</link>
      <description>&lt;P&gt;thank you!!!!!!!!!!!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 20:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-lookup-fields-into-search/m-p/599500#M208674</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2022-05-26T20:18:35Z</dc:date>
    </item>
  </channel>
</rss>

