DEV Community

Roman Glushko
Roman Glushko

Posted on

2 2

Tango is on the scene πŸ’ƒ

Everybody, Tango is on the scene πŸ’ƒ

Alt Text

I have released a simple CLI tool to streamline access log analyzing workflow πŸŽ‰

Wondering what's inside?

https://github.com/roma-glushko/tango

Tango is designed to generate different reports to be helpful during log analyzing routine:

  • analyzing how incoming traffic affects website performance
  • investigating security incidents and their impact on the website
  • filtering/aggregating logs to get other kinds of insights from them

Currently, the following reports are available for you πŸ› :

  • Custom Report: converts access logs to CSV format with the ability to filter records
  • Geo Report: collects GEO information for all IPs that accessing the website with the ability to sort by countries and continents.
  • Browser Report: groups requests by browsers/crawlers
  • Request Report: see which URLs were requested and how many times on the website
  • Pace Report: check how many requests were sent during a certain time frame by each IP

It is possible to install Tango on macOS/Linux/Windows πŸ“¦

# macOS (via Homebrew)
brew tap roma-glushko/tango
brew install roma-glushko/tango/tango

# Linux (via Snap)
sudo snap install tango

# Windows (via Scoop)
scoop bucket add tango https://github.com/roma-glushko/scoop-tango.git
scoop install tango

Enter fullscreen mode Exit fullscreen mode

Finally, here are some examples of usage:

# generate the pace report
tango pace -l access-log.log -r custom.csv

# get all requests from 128.2.3.4 IP
tango --ip-filter "128.2.3.4" custom -l access-log.log -r custom.csv

# get all requests to /newsletter/subscriber/new URL
tango --keep-uri-filter "/newsletter/subscriber/new/" custom -l access-log.log -r custom.csv

# get all IPs that requested /admin URL with GEO data
tango --keep-uri-filter "/admin/" geo -l access-log.log -r custom.csv
Enter fullscreen mode Exit fullscreen mode

Give it a try today and you won't be disappointed:

https://github.com/roma-glushko/tango πŸ’ƒπŸ’ƒπŸ’ƒ

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay