Year of Python (YOP) – Week Thirty Two

10Aug15

Hello Reader,

Unfortunately this week I’m travelling, so I had to pull out a script from my past (this will also be a short post).  It’s the vacation time of year, so it’s hard to sit down consistently and get new code written.

About a year or two ago I needed to parse through some wsFTPd logs, and I wanted a simple way to pull out the IP address of the system connecting to the server, and sort by the total amount of times it had connected.  Then as an added bonus, it could look up the IP address to resolve the name (IIRC I was looking for home router connections versus other systems).

Since this was in my “Python youth” it’s a combination of different chunks of code that I looked up.  But in the end it proved effective once I put it all together.

Until next week!

https://github.com/CdtDelta/YOP

Advertisements


No Responses Yet to “Year of Python (YOP) – Week Thirty Two”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: