<?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 How do I string certain searches together to get a list of user IP addresses doing a particular query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-string-certain-searches-together-to-get-a-list-of-user/m-p/334800#M99512</link>
    <description>&lt;P&gt;I have connection logs for a database. I need to identify users making certain queries. I'd like to:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Search for a string identifying the query&lt;/LI&gt;
&lt;LI&gt;Check that whole transaction for the original "open connection" event to get the IP address&lt;/LI&gt;
&lt;LI&gt;The IP address is a load balancer, so I have to check that IP/port in the load balancer logs to get the actual user IP address&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;How do I string these searches together to get a list of user IP addresses doing a particular query? I suspect the "transaction" command is key here, but I haven't found a clue in the examples.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 19:18:53 GMT</pubDate>
    <dc:creator>dangerusty</dc:creator>
    <dc:date>2018-03-07T19:18:53Z</dc:date>
    <item>
      <title>How do I string certain searches together to get a list of user IP addresses doing a particular query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-string-certain-searches-together-to-get-a-list-of-user/m-p/334800#M99512</link>
      <description>&lt;P&gt;I have connection logs for a database. I need to identify users making certain queries. I'd like to:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Search for a string identifying the query&lt;/LI&gt;
&lt;LI&gt;Check that whole transaction for the original "open connection" event to get the IP address&lt;/LI&gt;
&lt;LI&gt;The IP address is a load balancer, so I have to check that IP/port in the load balancer logs to get the actual user IP address&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;How do I string these searches together to get a list of user IP addresses doing a particular query? I suspect the "transaction" command is key here, but I haven't found a clue in the examples.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 19:18:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-string-certain-searches-together-to-get-a-list-of-user/m-p/334800#M99512</guid>
      <dc:creator>dangerusty</dc:creator>
      <dc:date>2018-03-07T19:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I string certain searches together to get a list of user IP addresses doing a particular query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-string-certain-searches-together-to-get-a-list-of-user/m-p/334801#M99513</link>
      <description>&lt;P&gt;(1) &lt;CODE&gt;Transaction&lt;/CODE&gt; is very resource intensive and there is almost always a better way. If you post the non-confidential portions of the searches here, then we can be of more help.&lt;BR /&gt;&lt;BR /&gt;
(2) Often, this kind of thing will be much simpler if it is in a dashboard. That way, the time of the event can be detected from the first search and used to qualify the second and/or third searches.  Otherwise, you end up coding something that has to search a massive amount of data for very little value.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 19:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-string-certain-searches-together-to-get-a-list-of-user/m-p/334801#M99513</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-03-07T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I string certain searches together to get a list of user IP addresses doing a particular query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-string-certain-searches-together-to-get-a-list-of-user/m-p/334802#M99514</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Sourcetype="ldap" "filter=\"(id=1)\""&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;[07/Mar/2018:14:01:11 -0600] - OPERATION - INFO - conn=12345 op=123 msgid=456 SEARCH base="example.com" scope=2 controls="" filter="(id=1)" attrs="*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Sourcetype="ldap" conn=12345 client&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;[07/Mar/2018:14:00:37 -0600] - CONNECT - INFO - conn=12345 client=10.0.0.2:56789
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Sourcetype="loadbalancer" "10.0.0.2|56789"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;Client_Acpt | Wed Mar 07 2018 14:00:37 | 10.0.0.5|56789| VIP | 10.0.0.4|636 | SNAT_IP | 10.0.0.2|56789 | Node | 10.0.0.3|636
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want a list of user IP addresses (such as 10.0.0.5 in this case) that searched with filter="(id=1)".&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 21:00:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-string-certain-searches-together-to-get-a-list-of-user/m-p/334802#M99514</guid>
      <dc:creator>dangerusty</dc:creator>
      <dc:date>2018-03-07T21:00:41Z</dc:date>
    </item>
  </channel>
</rss>

