Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Erlend Simonsen
RE: Apache Troubles [ reply ]  
2007-10-29 19:06
Looks like it's just the W3SVC1 string in the middle confusing the parser, so try something like:

_, date, time,serverip, url, referrer, port, size, host, useragent, status = /^([\d-]+) ([\d:]+) \S+ ([\d.]+) (.+? .+?) (\S+) (.+?) (\S+) ([\d.]+) (.+?) (\d+) (.*)$/.match(line).to_a

The current parser is supposed to handle most default IIS installs, but as I know next to nothing about IIS I don't know how true that is. :-)

-- Erlend

By: Marcus Samedong
RE: Apache Troubles [ reply ]  
2007-10-29 18:59
Current log formate:

2007-10-29 19:41:26 W3SVC1 <server IP> GET /iisstart.htm - 80 - <client IP> Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+{EF4A784F-D9E6-41ED-B6B5-58C652B9A487};+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30) 200 0 0


_, date, time,serverip, url, referrer, port, size, host, useragent, status = /^([\d-]+) ([\d:]+) ([\d.]+) (.+? .+?) (\S+) (.+?) (\S+) ([\d.]+) (.+?) (\d+) (.*)$/.match(line).to_a


pretty new to the whole ruby deal but i do notice that these look misplaced maybe. i assume this reads in each line and puts whatever info into these variables. Sorry to be a pest.

By: Marcus Samedong
RE: Apache Troubles [ reply ]  
2007-10-29 18:28
IIS is crap anyways :) I take iis.rb is set to use the default iis log format?

By: Erlend Simonsen
RE: Apache Troubles [ reply ]  
2007-10-29 17:49
IIS has too many different formats that people use for me to support all of them out of the box.

Tweaking the parser in lib/gl_tail/parsers/iis.rb shouldn't be too hard if you have some experience with regular expressions though.

By: Marcus Samedong
RE: Apache Troubles [ reply ]  
2007-10-29 17:32
Yeah i set up one added the IIS log files but no bubbles bouncing around. I see that info is being put into the log files. So im unsure if the log files need to be in a certain format.

Is there any documentation on this? I cant find any anywhere.

By: Erlend Simonsen
RE: Apache Troubles [ reply ]  
2007-10-29 17:27
gl_tail --parsers gives you a list of supported parsers, and then it's just a matter of setting the correct one in the server definitions in the config.

-- Erlend

By: Marcus Samedong
RE: Apache Troubles [ reply ]  
2007-10-29 16:13
Indeed it is true i am blind. Wrong file name thanks for the --switches. Is there documentation on getting IIS server going on this and for that matter any other service.

By: Erlend Simonsen
RE: Apache Troubles [ reply ]  
2007-10-29 15:56
What's your problem then? Tried running with --debug? Or --debug-ssh?

-- Erlend

By: Marcus Samedong
Apache Troubles [ reply ]  
2007-10-29 15:36
Cant seem to figure it out. The config file has my site. SSH login works. Is there some special setting or way i need to config apache or should this all work with default settings of apache?

Test:
host: 127.0.0.1
user: user
password: password
command: tail -f -n0
files: /var/log/apache2/access_log
parser: apache
color: 0.2, 1.0, 0.2, 1.0



Thanks ahead of time