<?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: CSV Lookup for search query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470867#M132463</link>
    <description>&lt;P&gt;May be it's due to field name, rename sm.to{} to smto in csv file and search query and try.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 13:55:25 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-02-12T13:55:25Z</dc:date>
    <item>
      <title>CSV Lookup for search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470864#M132460</link>
      <description>&lt;P&gt;I have a search query like this &lt;/P&gt;

&lt;P&gt;index=ppt    sm.to{}="&lt;A href="mailto:12-12-518@dt.com"&gt;12-12-518@dt.com&lt;/A&gt;" OR sm.to{}="&lt;A href="mailto:050920@cp.com"&gt;050920@cp.com&lt;/A&gt;"  |table sm.to{}  sm.stat&lt;/P&gt;

&lt;P&gt;and I want to use a csv lookup instead  because I have more email address to use and I want the result to show this two fields .&lt;/P&gt;

&lt;P&gt;My csv contains this &lt;BR /&gt;
sm.to{}&lt;BR /&gt;
&lt;A href="mailto:050920@cp.com"&gt;050920@cp.com&lt;/A&gt;&lt;BR /&gt;
&lt;A href="mailto:12-12-518@dt.com"&gt;12-12-518@dt.com&lt;/A&gt;&lt;BR /&gt;
&lt;A href="mailto:774211@PP.com"&gt;774211@PP.com&lt;/A&gt;&lt;BR /&gt;
&lt;A href="mailto:859@dat.com"&gt;859@dat.com&lt;/A&gt;&lt;BR /&gt;
&lt;A href="mailto:20909@PP.com"&gt;20909@PP.com&lt;/A&gt;&lt;BR /&gt;
&lt;A href="mailto:07548@pp.com"&gt;07548@pp.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Can anyone help with a lookup search query for me . thanks. &lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 09:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470864#M132460</guid>
      <dc:creator>Abdulm1</dc:creator>
      <dc:date>2020-02-12T09:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Lookup for search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470865#M132461</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ppt | lookup .csv sm.to{} OUTPUT sm.to{} as sm_to | search sm_to = *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Feb 2020 09:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470865#M132461</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-12T09:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Lookup for search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470866#M132462</link>
      <description>&lt;P&gt;am actaully using inputlookup so i used the below command but it did not work &lt;/P&gt;

&lt;P&gt;index=proofpoint      sourcetype=pps_maillog | inputlookup smto OUTPUT sm.to{} as sm_to | search sm_to = *&lt;/P&gt;

&lt;P&gt;I tried the following as well but did not work &lt;BR /&gt;
index=ppt&lt;BR /&gt;
| eval Recipients='sm.to{}'&lt;BR /&gt;
| table Recipients&lt;BR /&gt;
| search Recipients = "*"&lt;BR /&gt;
| join type=inner Recipients&lt;BR /&gt;
[| inputlookup smto&lt;BR /&gt;
| table sm.to{} sm.stat]&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470866#M132462</guid>
      <dc:creator>Abdulm1</dc:creator>
      <dc:date>2020-09-30T04:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Lookup for search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470867#M132463</link>
      <description>&lt;P&gt;May be it's due to field name, rename sm.to{} to smto in csv file and search query and try.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470867#M132463</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-12T13:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Lookup for search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470868#M132464</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt; it worked perfectly.&lt;BR /&gt;&lt;BR /&gt;
 index=ppt | lookup .csv sm.to{} OUTPUT sm.to{} as sm_to | search sm_to = * | table sm_to  sm.stat&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CSV-Lookup-for-search-query/m-p/470868#M132464</guid>
      <dc:creator>Abdulm1</dc:creator>
      <dc:date>2020-09-30T04:11:09Z</dc:date>
    </item>
  </channel>
</rss>

