<?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: lookup files for alert creating in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306256#M91955</link>
    <description>&lt;P&gt;is there any space between Action and Required in lookup?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 12:03:38 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-02-23T12:03:38Z</dc:date>
    <item>
      <title>lookup files for alert creating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306251#M91950</link>
      <description>&lt;P&gt;I have 3 lookup files. &lt;BR /&gt;
I want to take EmpNum from fiel1.csv searching for that in file2.csv to get the email id and generate an email alert to all those emails when todays date is = ActionRequired date. Now its hard coded i want to add one more lookup file dates.csv where i will place these dates. Now how can to write the query to get the date ActionRequired into that variable for comparison. &lt;/P&gt;

&lt;P&gt;|inputlookup file1.csv |rename "Employee ID" as EmpNum |search "Enrollment Status"=Enrolled OR "Enrollment Status"="In-Progress"  |eval ActionRequired="2018-02-23" | eval today=strftime(now(),"%Y-%m-%d")| where ActionRequired=today |fields "Name" "EmpNum" |lookup file2.csv "Employee ID" as "EmpNum"  output "Manager Email" as email "Employee Email" | stats values(EmpNum) as "Employee ID" list(Employee Email) as "Employee Email ID" by email&lt;/P&gt;

&lt;P&gt;dates.csv looks like this:&lt;BR /&gt;
I can use this query to just get the ActionRequired field from this file. &lt;BR /&gt;
|inputlooku dates.csv |search Description=MPC |field "Action Required"     &lt;/P&gt;

&lt;P&gt;Help&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:17:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306251#M91950</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-02-23T11:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: lookup files for alert creating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306252#M91951</link>
      <description>&lt;P&gt;is there any common field in   &lt;CODE&gt;file1.csv&lt;/CODE&gt; and &lt;CODE&gt;dates.csv&lt;/CODE&gt; like field &lt;CODE&gt;Description&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306252#M91951</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-23T11:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: lookup files for alert creating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306253#M91952</link>
      <description>&lt;P&gt;No common field. thats where am getting confused. &lt;BR /&gt;
But i can hardcode that value "Description"=MPC&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306253#M91952</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-02-23T11:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: lookup files for alert creating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306254#M91953</link>
      <description>&lt;P&gt;okay then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup file1.csv |rename "Employee ID" as EmpNum |search "Enrollment Status"=Enrolled OR "Enrollment Status"="In-Progress" |eval Description="MPC" |lookup dates.csv Description OUTPUT ActionRequired|&amp;lt;remaining query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306254#M91953</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-23T11:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: lookup files for alert creating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306255#M91954</link>
      <description>&lt;P&gt;Somehow ActionRequired is coming as blank &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 12:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306255#M91954</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-02-23T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: lookup files for alert creating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306256#M91955</link>
      <description>&lt;P&gt;is there any space between Action and Required in lookup?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 12:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306256#M91955</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-23T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: lookup files for alert creating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306257#M91956</link>
      <description>&lt;P&gt;Yes again the culprit double quotes .. Thanks much ...:) working now.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 12:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-files-for-alert-creating/m-p/306257#M91956</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-02-23T12:08:44Z</dc:date>
    </item>
  </channel>
</rss>

