<?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 extract filename from inputlookup csv file with query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670133#M229774</link>
    <description>Can you describe what and why you want? Currently I haven’t any hints how and where you would like to get it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Usually you could should use sub query to add it, but we should know what you are looking.</description>
    <pubDate>Wed, 29 Nov 2023 10:35:46 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-11-29T10:35:46Z</dc:date>
    <item>
      <title>How to extract filename from inputlookup csv file with query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670122#M229766</link>
      <description>&lt;P&gt;I want to get my inputlookup csv filename with the query.&lt;BR /&gt;&lt;BR /&gt;| inputlookup abc.csv&lt;BR /&gt;| stats count by inputlookup_filename&amp;nbsp; ```&amp;lt;= the result I needed is "abc"```&lt;BR /&gt;Or&lt;BR /&gt;| table&amp;nbsp;inputlookup_filename&amp;nbsp;```&amp;lt;= the result I needed is "abc"```&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670122#M229766</guid>
      <dc:creator>bimatomsoc</dc:creator>
      <dc:date>2023-11-29T08:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract filename from inputlookup csv file with query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670123#M229767</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you get filename with rest e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/data/lookup-table-files search="abc.csv" 
| fields title eai:appName eai:data&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670123#M229767</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-11-29T08:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract filename from inputlookup csv file with query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670126#M229769</link>
      <description>&lt;P class="lia-align-justify"&gt;Thanks for your response. It's really helpful and knowledgeable. Your &lt;STRONG&gt;rest&lt;/STRONG&gt; query can get the lookupfilename as &lt;STRONG&gt;title&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Actually, my original search query is -&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| inputlookup abc.csv | rename field1 as new_field
| append [| inputlookup def.csv | rename field1 as new_field]
| table new_field&lt;/LI-CODE&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;When I put rest query that you provided, &lt;STRONG&gt;"rest"&lt;/STRONG&gt; must be the first place in search.&lt;BR /&gt;I do want to know how to combine my original query and rest query to get the new_field and lookupfilename.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670126#M229769</guid>
      <dc:creator>bimatomsoc</dc:creator>
      <dc:date>2023-11-29T11:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract filename from inputlookup csv file with query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670133#M229774</link>
      <description>Can you describe what and why you want? Currently I haven’t any hints how and where you would like to get it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Usually you could should use sub query to add it, but we should know what you are looking.</description>
      <pubDate>Wed, 29 Nov 2023 10:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670133#M229774</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-11-29T10:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract filename from inputlookup csv file with query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670255#M229786</link>
      <description>&lt;P&gt;Thank you very much, Sir. Finally, I got the solution based on your suggestion. I put the filename column and value in the csv file. That is the easy way to get the lookupfilename in search.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 05:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-filename-from-inputlookup-csv-file-with-query/m-p/670255#M229786</guid>
      <dc:creator>bimatomsoc</dc:creator>
      <dc:date>2023-11-30T05:22:02Z</dc:date>
    </item>
  </channel>
</rss>

