<?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: Search for users having a type of connection based on sessionID in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572160#M199412</link>
    <description>&lt;P&gt;If I remember correctly, it's not a session ID as such, but a process idientifier for a particular process spawned from the main proftpd daemon to serve this client.&lt;/P&gt;&lt;P&gt;Anyway, it's easiest to correlate such sequences of events with a transaction.&lt;/P&gt;&lt;P&gt;You do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transaction SessionID&lt;/LI-CODE&gt;&lt;P&gt;And you get events groupped into transactions. From those you can&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search "active connection or whatever you need"&lt;/LI-CODE&gt;&lt;P&gt;And finally get your userid field from matching transactions by means of "fields" or "table" commands.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Oct 2021 16:32:56 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-10-24T16:32:56Z</dc:date>
    <item>
      <title>Search for users having a type of connection based on sessionID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572129#M199392</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to debug an issue with an FTP service. I'd like to know that which users are using 'active data connection', where the connecting point would only be the sessionID. I have already extracted sessionID and userID as fields.&lt;BR /&gt;&lt;BR /&gt;The logs for the sessions are varying between 150-3000 lines of events, and I don't know how to match my search criteria, to extract a userID connected to the sessionID that my search result is returning.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=p_ftp sourcetype=debug "active data connection" | stats values(sessionID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is giving me the sessionIDs properly, I just need the userIDs from the session it logged usually plenty of lines before.&lt;BR /&gt;&lt;BR /&gt;Can you please help me?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 04:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572129#M199392</guid>
      <dc:creator>pbabos</dc:creator>
      <dc:date>2021-10-24T04:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users having a type of connection based on sessionID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572135#M199396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240082"&gt;@pbabos&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=p_ftp sourcetype=debug "active data connection" 
| stats values(userID) AS userID BY sessionID&lt;/LI-CODE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 05:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572135#M199396</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-10-24T05:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users having a type of connection based on sessionID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572136#M199397</link>
      <description>&lt;P&gt;Show us a bit of your data. For now it's not obvious what's the relation (in your raw events) between UserID and SessionID.&lt;/P&gt;&lt;P&gt;If you have events matching UserID and SessionID - that's great, the possible solution has already been posted. But if you have distinct events - one specifying SessionID and another one with UserID - that won't be that easy. You'll need something to connect the events on.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 06:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572136#M199397</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-24T06:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users having a type of connection based on sessionID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572159#M199411</link>
      <description>&lt;P&gt;ah yea sorry it would be much easier of course.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is an example, where you can see the session number is 3082, user is ftptest_user, and I'm looking for the user of the session where my search matches 'active data connection opened'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-10-22 14:22:06,261 proftpd[3082] ftp.ip (client.ip[client.ip]): USER ftptest_user: Login successful.
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching PRE_CMD command 'RETR monitor.txt' to mod_core
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching PRE_CMD command 'RETR monitor.txt' to mod_core
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching PRE_CMD command 'RETR monitor.txt' to mod_vroot
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching PRE_CMD command 'RETR monitor.txt' to mod_vroot
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching PRE_CMD command 'RETR monitor.txt' to mod_auth
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching PRE_CMD command 'RETR monitor.txt' to mod_xfer
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): in dir_check_full(): path = '/monitor.txt', fullpath = '/monitor.txt'
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching CMD command 'RETR monitor.txt' to mod_vroot
2021-10-22 14:22:06,299 proftpd[3082] ftp.ip (client.ip[client.ip]): dispatching CMD command 'RETR monitor.txt' to mod_xfer
2021-10-22 14:22:06,311 proftpd[3082] ftp.ip (client.ip[client.ip]): active data connection opened - local  : ftp.ip:46490
2021-10-22 14:22:06,311 proftpd[3082] ftp.ip (client.ip[client.ip]): active data connection opened - remote : client.ip:9288&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 16:07:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572159#M199411</guid>
      <dc:creator>pbabos</dc:creator>
      <dc:date>2021-10-24T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users having a type of connection based on sessionID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572160#M199412</link>
      <description>&lt;P&gt;If I remember correctly, it's not a session ID as such, but a process idientifier for a particular process spawned from the main proftpd daemon to serve this client.&lt;/P&gt;&lt;P&gt;Anyway, it's easiest to correlate such sequences of events with a transaction.&lt;/P&gt;&lt;P&gt;You do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transaction SessionID&lt;/LI-CODE&gt;&lt;P&gt;And you get events groupped into transactions. From those you can&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search "active connection or whatever you need"&lt;/LI-CODE&gt;&lt;P&gt;And finally get your userid field from matching transactions by means of "fields" or "table" commands.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 16:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572160#M199412</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-24T16:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users having a type of connection based on sessionID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572167#M199415</link>
      <description>&lt;P&gt;wow thanks it worked like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 18:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572167#M199415</guid>
      <dc:creator>pbabos</dc:creator>
      <dc:date>2021-10-24T18:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users having a type of connection based on sessionID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572171#M199417</link>
      <description>&lt;P&gt;One more thing - as I said earlier - since your sessionID is actually a pid of proftpd process and might roll-over and repeat, you might tweak the transaction parameters a little (especially the duration and/or events triggering start/end of transaction). But if you don't have many clients, it might not be necessary.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 20:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-users-having-a-type-of-connection-based-on-sessionID/m-p/572171#M199417</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-24T20:08:22Z</dc:date>
    </item>
  </channel>
</rss>

