<?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 display only subsets of data from correlated sendmail log transactions? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628796#M218424</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your solution wass very close - and got me pointed in right direction that solved my issue&amp;nbsp; and provided the results I needed .&amp;nbsp; &amp;nbsp; Needed to add quotation marks around the TERM searches&amp;nbsp; so that query would work&amp;nbsp; ;&amp;nbsp; i.e. :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (TERM("from=") OR TERM("to=")) &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 07:58:57 GMT</pubDate>
    <dc:creator>mailwimp</dc:creator>
    <dc:date>2023-01-30T07:58:57Z</dc:date>
    <item>
      <title>How to display only subsets of data from correlated sendmail log transactions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628668#M218383</link>
      <description>&lt;P&gt;The sender and recipient information&amp;nbsp; I need from Unix/Linux "sendmail" logs is contained in separate lines in the sendmail log.&amp;nbsp; I am able to correlate all the entries for a given email using nested search, dedup, and transation using the following search:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index="sendmail_logs" host=relay* [search index="sendmail_logs" host=relay* from=\&amp;lt;*@example.com\&amp;gt; | dedup qid | fields qid ] | transaction fields=qid maxspan=1m&lt;/P&gt;&lt;P&gt;which produces the following (simplified and obfuscated):&lt;/P&gt;&lt;P&gt;2023-01-26T23:37:25+00:00 relay1 sendmail[115877]: 30QNbOpD115877: milter=ourmiltname, action=mail, continue&lt;BR /&gt;2023-01-26T23:37:25+00:00 relay1 sendmail[115877]: 30QNbOpD115877: milter=ourmiltname, action=rcpt, continue&lt;BR /&gt;2023-01-26T23:37:25+00:00 relay1 sendmail[115877]: 30QNbOpD115877: milter=ourmiltname, action=data, continue&lt;BR /&gt;2023-01-26T23:37:25+00:00 relay1 sendmail[115877]: 30QNbOpD115877: from=&amp;lt;bounce+e1165d.ef30-username=ourdomain.com@example.com&amp;gt;, size=25677, class=0, nrcpts=1, msgid=&amp;lt;20230126233721.b60dfcd8b6c1249b@example.com&amp;gt;, bodytype=8BITMIME, proto=ESMTPS, daemon=MTA, tls_verify=NO, auth=NONE, relay=m194-164.mailgun.net [161.38.194.164]&lt;BR /&gt;2023-01-26T23:37:26+00:00 relay1 sendmail[115877]: 30QNbOpD115877: milter add: header: X-NUNYA-SPF-Record: v=spf1 include:mailgun.org include:_spf.smtp.com ~all&lt;BR /&gt;2023-01-26T23:37:26+00:00 relay1 sendmail[115877]: 30QNbOpD115877: milter change: header Subject: from Sample Subject Line to EXTERNAL: Sample Subject Line&lt;BR /&gt;2023-01-26T23:37:26+00:00 relay1 sendmail[115877]: 30QNbOpD115877: milter=ourmiltname, action=eoh, continue&lt;BR /&gt;2023-01-26T23:37:27+00:00 relay1 sendmail[115887]: 30QNbOpD115877: to=&amp;lt;username@ourdomain.com&amp;gt;, delay=00:00:02, xdelay=00:00:01, mailer=smtp, tls_verify=OK, pri=145677, relay=nexthop.ourdomain.com. [192.168.0.7], dsn=2.0.0, stat=Sent (30QNbQau230876 Message accepted for delivery)&lt;BR /&gt;2023-01-26T23:37:27+00:00 relay1 sendmail[115887]: 30QNbOpD115877: done; delay=00:00:02, ntries=&lt;/P&gt;&lt;P&gt;Now, what I want to do is reduce the output to &lt;EM&gt;only the lines&lt;/EM&gt; that contain the strings "from=" OR "to=".&amp;nbsp;&amp;nbsp; I am new to splunk, so i tried adding adding&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; regex _raw="from\=\&amp;lt;|to\=\&amp;lt;"&lt;/P&gt;&lt;P&gt;but all the lines are still displayed.&amp;nbsp;&amp;nbsp; Suggestions on how to correct my query?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628668#M218383</guid>
      <dc:creator>mailwimp</dc:creator>
      <dc:date>2023-01-27T19:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only subsets of data from correlated sendmail log transactions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628670#M218385</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253315"&gt;@mailwimp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you need only from and to fields, you can try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="sendmail_logs" host=relay* 
| stats values(from) as from values(to) as to by qid&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628670#M218385</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-01-27T19:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only subsets of data from correlated sendmail log transactions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628671#M218386</link>
      <description>&lt;P&gt;Tried that, but by I need to query against a specific sending domain and need the complete set of data on the "from=" and "to=" lines to be able to provide transaction tracking data to an info security team member that needs it as part of his investigation.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628671#M218386</guid>
      <dc:creator>mailwimp</dc:creator>
      <dc:date>2023-01-27T19:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only subsets of data from correlated sendmail log transactions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628739#M218405</link>
      <description>&lt;P&gt;Do you mean&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="sendmail_logs" host=relay* (TERM(from=) OR TERM(to=))
    [ search index="sendmail_logs" host=relay* from=\&amp;lt;*@example.com\&amp;gt; | dedup qid | fields qid ]
| transaction fields=qid maxspan=1m&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 29 Jan 2023 07:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628739#M218405</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-01-29T07:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only subsets of data from correlated sendmail log transactions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628796#M218424</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your solution wass very close - and got me pointed in right direction that solved my issue&amp;nbsp; and provided the results I needed .&amp;nbsp; &amp;nbsp; Needed to add quotation marks around the TERM searches&amp;nbsp; so that query would work&amp;nbsp; ;&amp;nbsp; i.e. :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (TERM("from=") OR TERM("to=")) &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 07:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-only-subsets-of-data-from-correlated-sendmail-log/m-p/628796#M218424</guid>
      <dc:creator>mailwimp</dc:creator>
      <dc:date>2023-01-30T07:58:57Z</dc:date>
    </item>
  </channel>
</rss>

