Home > Slackware, VPS > web server realtime flv bandwidth usage stats

web server realtime flv bandwidth usage stats

inotail -f access.log | awk ‘BEGIN {FS = ” “}/.flv /{if ($10!=”-” && $9=200){count=count+$10;}; count1=count;count1=count/1024/10124;print $10″\t\t”count1 }

well, you may write to sqlite3 db or just to properly named plain txt file or to rrdtool db
there are many possible things to be added as counter per file or per file and referrer .. etc ..
it seems its much more simple way to do, even because if you keep the log files, you may rerun the counter on monthly basis
and you may add different counters on the fly 🙂
and, even the file is truncated, the counter will keep working without issues.

I bet ppl with no *nix experience will ask me why the hell i dont use awstats or similar
some will mention apache module mysql_log or whatever the name was …
One reason:
I hate web servers to do tasks different than just serving web sites.
And I do prefer simplicity on my servers.

and, now comes the best … :
Complete name : 059 – Thunderstruck.mp3
Format : MPEG Audio
File size : 11.2 MiB
Duration : 4mn 54s
Overall bit rate : 320 Kbps
Album : Stairway to Rock Heaven (Star FM Top 100)
Track name : Thunderstruck
Track name/Position : 059
Performer : AC/DC
Accompaniment : AC/DC
Genre : Rock
Recorded date : 2008
Writing library : LAME3.92
Comment : In Memory of Robo /Zamunda.Net/

Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Duration : 4mn 54s
Bit rate mode : Constant
Bit rate : 320 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Writing library : LAME3.92
Encoding settings : CBR

  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: