<?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: splunk lookup search two columns csv in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650917#M225054</link>
    <description>&lt;P&gt;Which date do you mean? Your stats already has earliest and latest&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 05:52:11 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-07-18T05:52:11Z</dc:date>
    <item>
      <title>How to create a search for lookup search two columns csv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650896#M225046</link>
      <description>&lt;P&gt;index=mail [ | inputlookup email_users.csv | rename address AS query | fields query ]&lt;BR /&gt;| dedup MessageTraceId&lt;BR /&gt;| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match&lt;BR /&gt;| where isnull(domain_match)&lt;BR /&gt;| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2&lt;BR /&gt;| where isnotnull(domain_match2)&lt;BR /&gt;| stats values(RecipientAddress) as Recipient values(Subject) as Subject earliest(_time) AS "Earliest" latest(_time) AS "Latest" values(Status) as Status by RecipientDomain SenderAddress&lt;BR /&gt;| eval subject_count=mvcount(Subject)&lt;BR /&gt;| sort - subject_count&lt;BR /&gt;| convert ctime("Latest")&lt;BR /&gt;| convert ctime("Earliest")&lt;/P&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have a csv call email_user.csv. There are 2 columns, 1 is address another is event date.&lt;/P&gt;
&lt;P&gt;Afer the above query has been done, there should be a few results.&lt;/P&gt;
&lt;P&gt;On those results , it matches the list from address column. I want to also show the event date column from the csv which matches the result.&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 19:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650896#M225046</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-08-02T19:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650913#M225050</link>
      <description>&lt;P&gt;It looks like your results could have two addresses, either or both of which could have matches in your lookup file so you would have to do two lookups, for example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup email_users.csv address AS SenderAddress&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Jul 2023 05:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650913#M225050</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-18T05:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650916#M225053</link>
      <description>&lt;P&gt;now the query is working , how to show the column of event date in the results as well , after the query is finish and results has been shown&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 05:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650916#M225053</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-07-18T05:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650917#M225054</link>
      <description>&lt;P&gt;Which date do you mean? Your stats already has earliest and latest&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 05:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650917#M225054</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-18T05:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650920#M225055</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a csv call email_user.csv. There are 2 columns, 1 is address another is event date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i want to show event date in the results as well. event date is from the csv.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE width="68"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="68"&gt;event_date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/10/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/10/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/9/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23/9/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/9/2023&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 18 Jul 2023 05:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650920#M225055</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-07-18T05:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650921#M225056</link>
      <description>&lt;P&gt;Your search returns these columns:&lt;SPAN&gt;&amp;nbsp;Recipient, Subject, Earliest, Latest, Status, RecipientDomain, SenderAddress and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;subject_count - which of these is the event_date?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 06:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650921#M225056</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-18T06:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650922#M225057</link>
      <description>&lt;P&gt;i want to include event date as well, it is from the csv , please help me for that&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 06:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650922#M225057</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-07-18T06:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650947#M225060</link>
      <description>&lt;LI-CODE lang="markup"&gt;| lookup email_users.csv address AS SenderAddress&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Jul 2023 08:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650947#M225060</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-18T08:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650948#M225061</link>
      <description>&lt;P&gt;index=mail [ | inputlookup email_users.csv | rename address AS query | fields query ]&lt;BR /&gt;| dedup MessageTraceId&lt;BR /&gt;| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match&lt;BR /&gt;| where isnull(domain_match)&lt;BR /&gt;| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2&lt;BR /&gt;| where isnotnull(domain_match2)&lt;BR /&gt;| stats values(RecipientAddress) as Recipient values(Subject) as Subject earliest(_time) AS "Earliest" latest(_time) AS "Latest" values(Status) as Status by RecipientDomain SenderAddress&lt;BR /&gt;| eval subject_count=mvcount(Subject)&lt;BR /&gt;| sort - subject_count&lt;BR /&gt;| convert ctime("Latest")&lt;BR /&gt;| convert ctime("Earliest")&lt;BR /&gt;| lookup email_users.csv event date AS date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi i am trying to get date field in the results , i cannot get it .&amp;nbsp; results are showing but i need the date from the csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the event date is from the email_users.csv&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 08:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650948#M225061</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-07-18T08:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650951#M225062</link>
      <description>&lt;P&gt;Your csv has email addresses and dates.&lt;/P&gt;&lt;P&gt;What are you looking up in the csv? SenderAddress or Recipient?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 08:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650951#M225062</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-18T08:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650956#M225063</link>
      <description>&lt;P&gt;both address and event date&lt;/P&gt;&lt;TABLE width="132"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;address&lt;/TD&gt;&lt;TD width="68"&gt;event_date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123@abc.com&lt;/TD&gt;&lt;TD&gt;2/10/2023&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so after the query is run , against address , if there is result , show the date as well.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 08:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650956#M225063</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-07-18T08:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650958#M225064</link>
      <description>&lt;P&gt;After the query has run, you have two addresses, which do you want to look up the date for?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 08:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/650958#M225064</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-18T08:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651104#M225121</link>
      <description>&lt;P&gt;the query is working now to search from csv column address , but event date column should also be shown&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 10:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651104#M225121</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-07-19T10:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651107#M225123</link>
      <description>&lt;P&gt;If you are not prepared to answer the question(s) to clarify your requirement, how can you expect us to provide you with a solution?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 11:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651107#M225123</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-19T11:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651667#M225280</link>
      <description>&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have answered your queries , can you please help.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 03:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651667#M225280</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-07-24T03:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651683#M225281</link>
      <description>&lt;P&gt;Which address field from your current result do you want to look up the date for from your lookup file?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/651683#M225281</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-24T07:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652808#M225585</link>
      <description>&lt;P&gt;Sender Address , then the event date from csv will be shown in the results as well&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 05:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652808#M225585</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-08-02T05:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652810#M225586</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=mail [ | inputlookup email_users.csv | rename address AS query | fields query ]
| dedup MessageTraceId
| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match
| where isnull(domain_match)
| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2
| where isnotnull(domain_match2)
| stats values(RecipientAddress) as Recipient values(Subject) as Subject earliest(_time) AS "Earliest" latest(_time) AS "Latest" values(Status) as Status by RecipientDomain SenderAddress
| eval subject_count=mvcount(Subject)
| sort - subject_count
| convert ctime("Latest")
| convert ctime("Earliest")
| lookup email_users.csv address AS SenderAddress&lt;/LI-CODE&gt;&lt;P&gt;(As I suggested 2 weeks ago)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 05:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652810#M225586</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-02T05:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652812#M225587</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Error in 'lookup' command: All of the fields in the lookup table are specified as lookups, leaving no destination fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so when there are results , the SenderAdress should lookup at the csv again and output another column call event date.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 05:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652812#M225587</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-08-02T05:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: splunk lookup search two columns csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652818#M225588</link>
      <description>&lt;P&gt;I am not sure which lookup is failing as you haven't shown the fields from all the lookups.&lt;/P&gt;&lt;P&gt;For the second part, you could try this (although there doesn't appear to be a date field in the results at the moment so it shouldn't be a problem).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup email_users.csv address AS SenderAddress OUTPUT date as EventDate&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Aug 2023 06:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-lookup-search-two-columns-csv/m-p/652818#M225588</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-02T06:20:29Z</dc:date>
    </item>
  </channel>
</rss>

