Fudge / gltail

Real-time visualization of server traffic, events and statistics with Ruby, SSH and OpenGL
http://www.fudgie.org
609 stars 95 forks source link

Mac OS X Logs streaming in, but not rendering visualization #31

Open gpatmore opened 9 years ago

gpatmore commented 9 years ago

on OSX 10.10.3 when running in debug mode I can see the logs streaming in from the remote servers, but nothing gets rendered on the display.

I've tried installing from this source and installing from community gem, same behavior. In the console output stream this is the only feedback indicating anything is going wrong (this is printed out every so often)

543 frames in 10.000 seconds = 54.300 FPS Elements[0], Activities[0], Blobs[0/0]

not sure where to go from here. any help would be appreciated.

Fudge commented 9 years ago

Sounds like the parser isn't understanding the output of your logs.. Could I see an example line?

-- Erlend

On Thu, Jun 4, 2015 at 6:04 PM, gpatmore notifications@github.com wrote:

on OSX 10.10.3 when running in debug mode I can see the logs streaming in from the remote servers, but nothing gets rendered on the display.

I've tried installing from this source and installing from community gem, same behavior. In the console output stream this is the only feedback indicating anything is going wrong (this is printed out every so often)

543 frames in 10.000 seconds = 54.300 FPS Elements[0], Activities[0], Blobs[0/0]

not sure where to go from here. any help would be appreciated.

— Reply to this email directly or view it on GitHub https://github.com/Fudge/gltail/issues/31.

gpatmore commented 9 years ago

output when running gltail with -d -v. I've just changed the endpoint URI and the ip addy for obvious reasons

hostname[gpatmore]: ###.###.###.### - - [09/Jun/2015:17:09:15 +0000] "POST /path/to/endpoint HTTP/1.1" 200 4220 "-" "-"
Fudge commented 9 years ago

That isn't a standard Apache/Nginx log format, so you'll have to add an initial match to the regexp used by the parser to eat the hostname[gpatmore]: part.

Edit lib/gltail/parsers/apache.rb, and change the first line in the parse function to something like: , syslog, host, user, domain, date, url, status, size, referrer, useragent = /([^:]+): ([\d\S.]+) (\S+) (\S+) [([^]]+)] \"(.+?)\" (\d+) ([\S]+) \"([^\"]+)\" \"([^\"]+)\"/.match(line).to_a

-- Erlend

On Tue, Jun 9, 2015 at 7:12 PM, gpatmore notifications@github.com wrote:

output when running gltail with -d -v

hostname[gpatmore]: ###.###.###.### - - [09/Jun/2015:17:09:15 +0000] "POST /path/to/endpoint HTTP/1.1" 200 4220 "-" "-"

— Reply to this email directly or view it on GitHub https://github.com/Fudge/gltail/issues/31#issuecomment-110436794.

gpatmore commented 9 years ago

thanks a bunch! love the app.