<?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: Importing Values for a Search from a CSV File in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Values-for-a-Search-from-a-CSV-File/m-p/522477#M88232</link>
    <description>&lt;P&gt;Dear &lt;SPAN class="UserName lia-user-name lia-user-rank-Champion"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;thambisetty&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thx for the ultrafast reply. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try your example, i will get the following error:&lt;BR /&gt;&lt;EM&gt;Error in 'lookup' command: Could not find all of the specified lookup fields in the lookup table.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;The field DST is available in firewall raw events.&lt;/P&gt;&lt;P&gt;In the CSV File are only plain IP adresses nothing else.&lt;/P&gt;&lt;P&gt;Do i have to define a new field called &lt;EM&gt;"newfieldfromcsv"&lt;/EM&gt;, and if yes how?&lt;/P&gt;&lt;P&gt;I know newbie questions.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;&lt;/P&gt;&lt;P&gt;THX again for your help!&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 12:39:43 GMT</pubDate>
    <dc:creator>anording</dc:creator>
    <dc:date>2020-10-01T12:39:43Z</dc:date>
    <item>
      <title>Importing Values for a Search from a CSV File</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Values-for-a-Search-from-a-CSV-File/m-p/522413#M88221</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I´m new to splunk and need a short hint, concerning the following question:&lt;/P&gt;&lt;P&gt;I have some Firewall logs in Splunk and would like to search in the Destination (DST) field for specific Servers.&lt;/P&gt;&lt;P&gt;I uploaded a Server-2.csv&amp;nbsp;and a " &lt;EM&gt;| inputlookup Server-2.csv&amp;nbsp; " &lt;/EM&gt;shows the content of the file correctly.&lt;/P&gt;&lt;P&gt;A manual search like &lt;EM&gt;" index=firewall DST=8.8.8.8 "&lt;/EM&gt; works fine.&lt;/P&gt;&lt;P&gt;From my point of view a &lt;EM&gt;" index=firewall [ | inputlookup Server-2.csv | table DST ] "&lt;/EM&gt; should do a search for every entry in the CSV file, but I get no error and no result.&lt;BR /&gt;There should be a result because 8.8.8.8 is in the CSV as first entry.&lt;BR /&gt;Is the table entry the wrong syntax?&lt;/P&gt;&lt;P&gt;Sorry if this question is too simple, but I really would appreciate some hints.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;André &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 07:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-Values-for-a-Search-from-a-CSV-File/m-p/522413#M88221</guid>
      <dc:creator>anording</dc:creator>
      <dc:date>2020-10-01T07:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Values for a Search from a CSV File</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Values-for-a-Search-from-a-CSV-File/m-p/522444#M88224</link>
      <description>&lt;P&gt;&lt;EM&gt;[ | inputlookup Server-2.csv | table DST ]&lt;SPAN&gt;&amp;nbsp; is called sub search in Splunk. It has got limitations in the way you are using it.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;can you try using lookup command like below:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;assuming field DST is available in firewall raw events as well.&lt;/P&gt;&lt;P&gt;newfieldfromcsv is extra field from lookup and this will be used to get events matched with firewall events&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=firewall | stats count by DST
| lookup Server-2.csv DST OUTPUT newfieldfromcsv
| where isnotnull(newfieldfromcsv)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 09:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-Values-for-a-Search-from-a-CSV-File/m-p/522444#M88224</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-10-01T09:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Values for a Search from a CSV File</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Values-for-a-Search-from-a-CSV-File/m-p/522477#M88232</link>
      <description>&lt;P&gt;Dear &lt;SPAN class="UserName lia-user-name lia-user-rank-Champion"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;thambisetty&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thx for the ultrafast reply. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try your example, i will get the following error:&lt;BR /&gt;&lt;EM&gt;Error in 'lookup' command: Could not find all of the specified lookup fields in the lookup table.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;The field DST is available in firewall raw events.&lt;/P&gt;&lt;P&gt;In the CSV File are only plain IP adresses nothing else.&lt;/P&gt;&lt;P&gt;Do i have to define a new field called &lt;EM&gt;"newfieldfromcsv"&lt;/EM&gt;, and if yes how?&lt;/P&gt;&lt;P&gt;I know newbie questions.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;&lt;/P&gt;&lt;P&gt;THX again for your help!&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 12:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-Values-for-a-Search-from-a-CSV-File/m-p/522477#M88232</guid>
      <dc:creator>anording</dc:creator>
      <dc:date>2020-10-01T12:39:43Z</dc:date>
    </item>
  </channel>
</rss>

