View Single Post
  #2  
Old 01-09-2013, 11:37 PM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
We use H-Sphere apache configs with litespeed
Logging section looks like


<IfModule log_config_module>
LogFormat "&#37;h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

BufferedLogs On

CustomLog /hsphere/local/var/httpd/logs/access_log combined

# Custom Psoft directive to provide logging into traffic_log file
# for VH with redefined CustomLog. Do not change its status!
AlwaysServerLogs on

<IfModule logio_module>
LogFormat "%{%s}t %v %I %O" combinedio
CustomLog /hsphere/local/var/httpd/logs/traffic_log combinedio
</IfModule>
</IfModule>

However the only records I can see is the ones with IP addresses, instead of host names.
Like this

# tail -f traffic_log
1349259007 2.7.2.6 36 177
1349259007 2.7.2.6 30 177
1349259009 2.7.2.6 38 712
1349259020 2.7.2.6 469 203


If I delete log setting records from httpd.conf and set it is litespeed admin like


File Name /hsphere/local/var/httpd/logs/traffic_log
Piped Logger Not Set
Log Format %{%s}t %v %I %O
Log Headers Referrer UserAgent Host None
Rolling Size (bytes) 100M
Keep Days 1
Compress Archive Yes

I have no logs at all.
We are on 2CPU Enterprise license.

Last edited by bobykus; 01-10-2013 at 12:10 AM..
Reply With Quote