<?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: I'm trying to perform a subsearch on lookup table and extract two fields using a or statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-perform-a-subsearch-on-lookup-table-and-extract/m-p/222575#M188205</link>
    <description>&lt;P&gt;Thanks worked perfectly.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 23:32:42 GMT</pubDate>
    <dc:creator>dkorlat</dc:creator>
    <dc:date>2016-08-11T23:32:42Z</dc:date>
    <item>
      <title>I'm trying to perform a subsearch on lookup table and extract two fields using a or statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-perform-a-subsearch-on-lookup-table-and-extract/m-p/222573#M188203</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I'm trying to perform a subsearch to get a list of users in a lookup table and map the mail field to recipients and sender and perform a &lt;BR /&gt;
search on recipients or sender. At the moment it's only performing the search if the recipients and senders are both as the recipients and sender .&lt;BR /&gt;
Is there is a way to change it to search for recipients or senders that match to the fields instead of both fields need to match?&lt;BR /&gt;
Here is my current search.&lt;BR /&gt;
index=msexchange sourcetype="MSExchange:2010:MessageTracking" recipients=* OR sender=* [| inputlookup Finance_Users.csv | eval recipients = mail | eval sender = mail | fields recipients, sender] | dedup message_id | eval DLM = coalesce(SEC,DLM)  |sort by -_time | convert timeformat="%d/%m/%Y %I:%M:%S %p" ctime(_time)  | table _time, sender, recipient, message_subject, DLM | rename sender as Sender, recipient as Recipient, _time as Time, message_subject as Subject&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-perform-a-subsearch-on-lookup-table-and-extract/m-p/222573#M188203</guid>
      <dc:creator>dkorlat</dc:creator>
      <dc:date>2020-09-29T10:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to perform a subsearch on lookup table and extract two fields using a or statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-perform-a-subsearch-on-lookup-table-and-extract/m-p/222574#M188204</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=msexchange sourcetype="MSExchange:2010:MessageTracking"  [| inputlookup Finance_Users.csv | eval recipients = mail | eval sender = mail | fields recipients, sender | format "(" "" "OR" "" "OR" ")" ] | dedup message_id | eval DLM = coalesce(SEC,DLM)  |sort by -_time | convert timeformat="%d/%m/%Y %I:%M:%S %p" ctime(_time)  | table _time, sender, recipient, message_subject, DLM | rename sender as Sender, recipient as Recipient, _time as Time, message_subject as Subject
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Aug 2016 16:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-perform-a-subsearch-on-lookup-table-and-extract/m-p/222574#M188204</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-11T16:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to perform a subsearch on lookup table and extract two fields using a or statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-perform-a-subsearch-on-lookup-table-and-extract/m-p/222575#M188205</link>
      <description>&lt;P&gt;Thanks worked perfectly.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 23:32:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-perform-a-subsearch-on-lookup-table-and-extract/m-p/222575#M188205</guid>
      <dc:creator>dkorlat</dc:creator>
      <dc:date>2016-08-11T23:32:42Z</dc:date>
    </item>
  </channel>
</rss>

