<?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: Comparing Logs from two different sourcetypes with same session id in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509871#M9331</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I guess I asked the question wrong. Both sourcetype already has the same session id. I want whatever Session id's that came in the signons search to be searched for in the user_activity sourcetype. Kind of like a subsearch I guess.&lt;/P&gt;&lt;P&gt;Also, what do I replace the * with? Kind of confused on that.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jul 2020 21:29:25 GMT</pubDate>
    <dc:creator>aaroncherian</dc:creator>
    <dc:date>2020-07-18T21:29:25Z</dc:date>
    <item>
      <title>Comparing Logs from two different sourcetypes with same session id</title>
      <link>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509864#M9329</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sourcetype called "signons" and it has a field called "Session_ID" and "System_Account"&lt;/P&gt;&lt;P&gt;In my search, I am looking for any proxy sessions and want to display those proxy sessions with the same "Session_ID" in the sourcetype called "user_activity".&lt;/P&gt;&lt;P&gt;To check if a session is a proxy session, the "System_Account" field has the words "on behalf of".&lt;/P&gt;&lt;P&gt;Here is my search so far:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="foo" host="bar" sourcetype="signons" System_Account="*on behalf of*"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One example of an event that returns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; "System_Account": "12345 / Aaron Cherian on behalf of 67890 / John Doe",
 "Authentication_Type": "Proxy Started",
 "Session_ID": "4743ha",
 "Is_Admin": "1",
 "Elapsed_Time_Minutes": "1029"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to take this Session_ID (There are multiple different Session_ID's because there are many proxy sessions that are being run during the day) and search for the events in a different sourcetype called "user_activity" (This basically checks the user activity for that specific Session_ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my search for that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="foo" host="bar" sourcetype="user_activity" 4743ha&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just displaying the events for that specific Session_ID. Is there a way to search for all Session_ID's that have the words "on behalf of" in the "System_Account" field in the "user_activity" sourcetype and display the events? Basically I want to combine these two searches for all proxy Session_ID's&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 20:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509864#M9329</guid>
      <dc:creator>aaroncherian</dc:creator>
      <dc:date>2020-07-18T20:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Logs from two different sourcetypes with same session id</title>
      <link>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509868#M9330</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;index=foo host=bar (sourcetype=signons System_Account="*on behalf of*") OR (sourcetype=user_activity)
| eval sys_acc=if (sourcetype=="signons", 1, 0)
| stats values(*) as * by Session_ID
| where mvcount(sys_acc) &amp;gt; 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This found events if there are Session_ID on both sourcetypes. If you want also events only in sourcetype=signons, then you must update last where conditions match to sys_acc has value 1.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 21:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509868#M9330</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-18T21:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Logs from two different sourcetypes with same session id</title>
      <link>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509871#M9331</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I guess I asked the question wrong. Both sourcetype already has the same session id. I want whatever Session id's that came in the signons search to be searched for in the user_activity sourcetype. Kind of like a subsearch I guess.&lt;/P&gt;&lt;P&gt;Also, what do I replace the * with? Kind of confused on that.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 21:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509871#M9331</guid>
      <dc:creator>aaroncherian</dc:creator>
      <dc:date>2020-07-18T21:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Logs from two different sourcetypes with same session id</title>
      <link>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509881#M9332</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you tried this query already?&lt;/P&gt;&lt;P&gt;in Splunk it’s almost always better to avoid sub search. Usually it can avoid with stats (as above). * in above query will replaced by all other fields than Session_ID, as I don’t know other interesting fields which you are needing. &amp;nbsp;If you are interested only subset of fields then replace values(*) ... part with named fields.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 10:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509881#M9332</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-19T10:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Logs from two different sourcetypes with same session id</title>
      <link>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509922#M9333</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked well! This query gives me exactly what I want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 21:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Comparing-Logs-from-two-different-sourcetypes-with-same-session/m-p/509922#M9333</guid>
      <dc:creator>aaroncherian</dc:creator>
      <dc:date>2020-07-19T21:07:18Z</dc:date>
    </item>
  </channel>
</rss>

