<?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: Snort log time calculation for RDP connect / disconnect - Parsing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103293#M21708</link>
    <description>&lt;P&gt;Number 3 - Second search string does not calculate time due to the above problem and also I am getting the source IP mixed up in the results. &lt;A href="http://www.itsuperman.com/Splunk/SearchString2.png"&gt;Depicted-Here&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2013 15:13:24 GMT</pubDate>
    <dc:creator>Xe03kfp</dc:creator>
    <dc:date>2013-01-31T15:13:24Z</dc:date>
    <item>
      <title>Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103283#M21698</link>
      <description>&lt;P&gt;I am looking for a way to do two searches on two fields and of the two searches, only take 1 of the fields to do a calculation.  The calculation will be the total time of a RDP connection to a workstation.  I have Snort setup to give me an alert for a connection and disconnection and Splunk displaying the results in the correct format "alert_fast_full"&lt;/P&gt;

&lt;P&gt;Sample of the log:  Full log located &lt;A href="http://www.itsuperman.com/Snort%20Log.txt" target="_blank"&gt;HERE&lt;/A&gt;&lt;BR /&gt;
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+&lt;BR /&gt;
[&lt;STRONG&gt;] [1:1111111:0] Snort Alert [1:1111111:0] [*&lt;EM&gt;]&lt;BR /&gt;
[Classification: RDC Connection Established] [Priority: 10]&lt;BR /&gt;
Event ID: 30     Event Reference: 30&lt;BR /&gt;
01/25/13-16:00:04.843359 10.7.0.39:3763 -&amp;gt; 192.168.254.97:3309&lt;BR /&gt;
TCP TTL:127 TOS:0x0 ID:6857 IpLen:20 DgmLen:87 DF&lt;BR /&gt;
*&lt;/EM&gt;*AP&lt;/STRONG&gt;* Seq: 0xE84B548E  Ack: 0xC5D81F3E  Win: 0x100  TcpLen: 20&lt;BR /&gt;
03 00 00 2F 2A E0 00 00 00 00 00 43 6F 6F 6B 69  .../&lt;EM&gt;......Cooki&lt;BR /&gt;
65 3A 20 6D 73 74 73 68 61 73 68 3D 41 64 6D 69  e: mstshash=Admi&lt;BR /&gt;
6E 69 73 74 72 0D 0A 01 00 08 00 0B 00 00 00     nistr..........&lt;BR /&gt;
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+&lt;BR /&gt;
[**] [1:2222222:0] Snort Alert [1:2222222:0] [**]&lt;BR /&gt;
[Classification: RDC Disconnect] [Priority: 10]&lt;BR /&gt;
Event ID: 29     Event Reference: 29&lt;BR /&gt;
01/25/13-16:00:04.106860 192.168.254.97:3309 -&amp;gt; 10.7.0.39:3762&lt;BR /&gt;
TCP TTL:127 TOS:0x0 ID:29375 IpLen:20 DgmLen:40 DF&lt;BR /&gt;
*&lt;/EM&gt;&lt;EM&gt;A*R&lt;/EM&gt;* Seq: 0x673B29EE  Ack: 0x97AD3E87  Win: 0x0  TcpLen: 20&lt;BR /&gt;
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+&lt;BR /&gt;
[&lt;STRONG&gt;] [1:2222222:0] Snort Alert [1:2222222:0] [*&lt;EM&gt;]&lt;BR /&gt;
[Classification: RDC Disconnect] [Priority: 10]&lt;BR /&gt;
Event ID: 28     Event Reference: 28&lt;BR /&gt;
01/25/13-15:59:58.521247 192.168.254.97:3308 -&amp;gt; 10.7.0.39:3761&lt;BR /&gt;
TCP TTL:127 TOS:0x0 ID:12121 IpLen:20 DgmLen:40 DF&lt;BR /&gt;
*&lt;/EM&gt;*A*R&lt;/STRONG&gt; Seq: 0x8249C886  Ack: 0x1D15B360  Win: 0x0  TcpLen: 20&lt;BR /&gt;
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+&lt;BR /&gt;
[&lt;STRONG&gt;] [1:2222222:0] Snort Alert [1:2222222:0] [*&lt;EM&gt;]&lt;BR /&gt;
[Classification: RDC Disconnect] [Priority: 10]&lt;BR /&gt;
Event ID: 27     Event Reference: 27&lt;BR /&gt;
01/25/13-15:59:52.824224 192.168.254.97:3303 -&amp;gt; 10.7.0.39:3747&lt;BR /&gt;
TCP TTL:127 TOS:0x0 ID:17495 IpLen:20 DgmLen:40 DF&lt;BR /&gt;
*&lt;/EM&gt;*A*R&lt;/STRONG&gt; Seq: 0x6DEB62CE  Ack: 0x8CE5A9FC  Win: 0x0  TcpLen: 20&lt;BR /&gt;
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+&lt;BR /&gt;
[&lt;STRONG&gt;] [1:1111111:0] Snort Alert [1:1111111:0] [*&lt;EM&gt;]&lt;BR /&gt;
[Classification: RDC Connection Established] [Priority: 10]&lt;BR /&gt;
Event ID: 26     Event Reference: 26&lt;BR /&gt;
01/25/13-15:59:51.960445 10.7.0.39:3760 -&amp;gt; 192.168.254.97:3303&lt;BR /&gt;
TCP TTL:127 TOS:0x0 ID:5899 IpLen:20 DgmLen:87 DF&lt;BR /&gt;
*&lt;/EM&gt;*AP&lt;/STRONG&gt;* Seq: 0x2EE48349  Ack: 0x33E7ADDF  Win: 0x100  TcpLen: 20&lt;BR /&gt;
03 00 00 2F 2A E0 00 00 00 00 00 43 6F 6F 6B 69  .../&lt;EM&gt;......Cooki&lt;BR /&gt;
65 3A 20 6D 73 74 73 68 61 73 68 3D 41 64 6D 69  e: mstshash=Admi&lt;BR /&gt;
6E 69 73 74 72 0D 0A 01 00 08 00 0B 00 00 00     nistr..........&lt;BR /&gt;
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+&lt;BR /&gt;
[**] [1:2222222:0] Snort Alert [1:2222222:0] [**]&lt;BR /&gt;
[Classification: RDC Disconnect] [Priority: 10]&lt;BR /&gt;
Event ID: 25     Event Reference: 25&lt;BR /&gt;
01/25/13-15:59:51.953843 192.168.254.97:3303 -&amp;gt; 10.7.0.39:3759&lt;BR /&gt;
TCP TTL:127 TOS:0x0 ID:17272 IpLen:20 DgmLen:40 DF&lt;BR /&gt;
*&lt;/EM&gt;&lt;EM&gt;A*R&lt;/EM&gt;* Seq: 0xC32E573F  Ack: 0xF58DAC60  Win: 0x0  TcpLen: 20&lt;BR /&gt;
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+&lt;/P&gt;

&lt;P&gt;My search pattern:&lt;/P&gt;

&lt;P&gt;Signature=2222222 dest_port="*" | fields - signature&lt;BR /&gt;
   -This gives me ONLY dest_port  (What I want)&lt;BR /&gt;
&amp;amp;&lt;/P&gt;

&lt;P&gt;Signature=1111111 src_port="*" | fields - signature&lt;BR /&gt;
  -Ditto src_port (Also what I want)&lt;/P&gt;

&lt;P&gt;The unique field I need is the src_port and dest_port due to it being an ephemeral port that is unique &amp;amp; same to the connection opening and closing. &lt;/P&gt;

&lt;P&gt;I then want to do a calculation of the search above and subtract the dest_port time from src_port time to give me the overall connection time.&lt;/P&gt;

&lt;P&gt;3301-3310 Calculate time based on search above&lt;/P&gt;

&lt;P&gt;Total time = XXX hours minutes seconds for 1week 1month 5 days&lt;/P&gt;

&lt;P&gt;I apologize if this is easy but I am still reading through the 5.5MB PDF Splunk documentation to give me a fuller scope of how to use Splunk to its greatest capability. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103283#M21698</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2020-09-28T13:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103284#M21699</link>
      <description>&lt;P&gt;Also linked is a screen cap of what I see for fields.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.itsuperman.com/Splunk%20-Snort%20fields.png"&gt;CLICK HERE&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And, the log I linked is an export from Splunk and not Snort.  Splunk is displaying the Snort data inputs correctly from 2 snort IDS's&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 15:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103284#M21699</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2013-01-29T15:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103285#M21700</link>
      <description>&lt;P&gt;ALSO! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Just FYI I am using "Splunk for Snort" with Maxmind and Sideview Utils.&lt;/P&gt;

&lt;P&gt;And Splunk pulls the logs from a network drive; the central location for all Snorts to save their logs, instead of locally.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 15:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103285#M21700</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2013-01-29T15:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103286#M21701</link>
      <description>&lt;P&gt;Well points to you for diving in with Splunk AND Snort all in 1 go plus the comprehensive data provided! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
Just clarify please...2 searches, 2 fields (understood) of which you want only 1 of those - based on what criteria?&lt;BR /&gt;
End result is that you wish to see session times per connection between source and destination?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 16:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103286#M21701</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-29T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103287#M21702</link>
      <description>&lt;P&gt;Response:&lt;/P&gt;

&lt;P&gt;*So I do not have to specify the index or source I have specifically configured SplunkforSnort to look at one index.&lt;/P&gt;

&lt;P&gt;Searches:&lt;/P&gt;

&lt;H1&gt;1  Signature 1111111 src_port="*" | fields - signature&lt;/H1&gt;

&lt;PRE&gt;&lt;CODE&gt;      -This will only highlight the src_port(s)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H1&gt;2  Signature 2222222 dest_port="*" | fields - signature&lt;/H1&gt;

&lt;PRE&gt;&lt;CODE&gt;    -This will only highlight the dest_port(s)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jan 2013 17:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103287#M21702</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2013-01-29T17:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103288#M21703</link>
      <description>&lt;P&gt;Of the two searches: ("based on criteria")  --Somehow "join" the two search results to show ONLY the src_port and dest_port&lt;BR /&gt;
                           -The answer to the two searches are the MOST "uniq" to derive the calculation&lt;BR /&gt;
                            I need.&lt;/P&gt;

&lt;P&gt;"End Result" -- Yes&lt;BR /&gt;
   -Session times per connection between src_port and dest_port from a src_ip&lt;/P&gt;

&lt;P&gt;FYI if someone is curious: *3301 - 3310 are the ports I have masqueraded to forward to 3389 of a certain workstation.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103288#M21703</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2020-09-28T13:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103289#M21704</link>
      <description>&lt;P&gt;I'd like to get a Report based on the calculation that can be submitted (exported or copy/pasted) and&lt;BR /&gt;
possibly derive a report for top src_ip(s), which I think SplunkForSnort gives as a built in search. &lt;/P&gt;

&lt;P&gt;I hope this clarifies my need a lil bit &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;And sorry for the multiple replies...I am only allotted so many characters.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 17:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103289#M21704</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2013-01-29T17:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103290#M21705</link>
      <description>&lt;P&gt;Have you looked at the &lt;CODE&gt;transaction&lt;/CODE&gt; command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Signature=2222222 OR Signature=1111111 | transaction src_ip src_port dest_ip dest_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;transaction&lt;/CODE&gt; will create two fields, &lt;CODE&gt;eventcount&lt;/CODE&gt; and &lt;CODE&gt;duration&lt;/CODE&gt;, which pretty much contain what you'd expect them to. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;You could also use &lt;CODE&gt;stats&lt;/CODE&gt; to do something similar.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Signature=2222222 OR Signature=1111111 | stats range(_time) as duration by src_ip,src_port,dest_ip,dest_port
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jan 2013 20:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103290#M21705</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-29T20:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103291#M21706</link>
      <description>&lt;P&gt;Almost! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;H1&gt;1 - I just found out Splunk is case sensitive Sig-&amp;gt;sig&lt;/H1&gt;

&lt;H1&gt;2 - The first search string does not focus on the uniq fields I need to arrive at my answer.  &lt;A href="http://www.itsuperman.com/Splunk/SearchString1.png" target="_blank"&gt;Depicted-Here&lt;/A&gt;&lt;/H1&gt;

&lt;P&gt;--I need the src_port of the 1111111 to be calculated by 222222222 dest_port   Because the ephemeral port (randomized local port) is the uniq value.  Both Snort signatures contain a 33xx port depending on what direction the packets are going.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103291#M21706</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2020-09-28T13:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103292#M21707</link>
      <description>&lt;P&gt;Sorry.. I'm not sure why it posted like that.. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103292#M21707</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2013-01-31T15:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103293#M21708</link>
      <description>&lt;P&gt;Number 3 - Second search string does not calculate time due to the above problem and also I am getting the source IP mixed up in the results. &lt;A href="http://www.itsuperman.com/Splunk/SearchString2.png"&gt;Depicted-Here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103293#M21708</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2013-01-31T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Snort log time calculation for RDP connect / disconnect - Parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103294#M21709</link>
      <description>&lt;P&gt;192.168.254.14 and 192.168.254.97 = Servers(Host)&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Snort-log-time-calculation-for-RDP-connect-disconnect-Parsing/m-p/103294#M21709</guid>
      <dc:creator>Xe03kfp</dc:creator>
      <dc:date>2013-01-31T15:14:33Z</dc:date>
    </item>
  </channel>
</rss>

