2010/12/21 Koray AGAYA <insanad...@gmail.com>

> Hi
>
> Where can I change log time format ? Which file ? I didint found. Can you
> help me please ! this log time "1292930146.341"  format is UNIX
>
> Anybody want to change UNIX log format change as below
>
> OLD LINE
>
> %ts.%03tu %6tr %>a %Ss/%03Hs %
>
> NEW LINE
>
> %tl %6tr %>a %Ss/%03Hs %
>
>
>
> *1292930146.341*    429 10.0.20.83 TCP_MISS/200 457 GET
> http://www.google-analytics.com/__utm.gif? - DEFAULT_PARENT/havp image/gif
> *1292930147.007*    971 10.0.20.71 TCP_MISS/200 20880 GET
> http://fb-tc-3.farmville.com/feed.php? - DEFAULT_PARENT/havp text/html
> *1292930147.430*    209 10.0.20.90 TCP_MISS/200 9624 GET
> http://www.ligtv.com.tr/_Swfs/VideoLigPlayerV7.aspx? - DEFAULT_PARENT/havp
> text/html
> 1292930147.715    165 10.0.20.90 TCP_MISS/200 384 GET
> http://ad.reklamport.com/rpbt.png? - DEFAULT_PARENT/havp -
> 1292930147.860    202 10.0.20.90 TCP_MISS/200 1496 GET
> http://run.admost.com/adx/get.ashx? - DEFAULT_PARENT/havp text/html
> 1292930148.420    414 10.0.20.90 TCP_MISS/200 457 GET
> http://www.google-analytics.com/__utm.gif? - DEFAULT_PARENT/havp image/gif
> 1292930148.430      0 10.0.20.90 TCP_NEGATIVE_HIT/404 1151 GET
> http://www.ligtv.com.tr/75p_honey.png - NONE/- text/html
> 1292930148.439     48 10.0.20.90 TCP_MISS/200 764 GET
> http://ad.reklamport.com/rpgetad.ashx? - DEFAULT_PARENT/havp text/html
> 1292930149.023     99 10.0.20.90 TCP_MISS/200 1072 GET
> http://www.ligtv.com.tr/_FlashContents/get_xml_videoplayer.aspx? -
> DEFAULT_PARENT/havp text/xml
> 1292930149.120     23 10.0.20.90 TCP_MISS/302 723 GET
> http://www.ligtv.com.tr/Services/? - DEFAULT_PARENT/havp text/html
> 1292930151.181    100 10.0.20.90 TCP_MISS/405 1891 POST
> http://www.ligtv.com.tr/_Swfs/ - DEFAULT_PARENT/havp text/html
> 1292930151.818   2628 10.0.20.90 TCP_MISS/200 3025633 GET
> http://media.ligtv.com.tr/tauri/tsl/20102011/17/mns1ibb0lig.flv? -
> DEFAULT_PARENT/havp video/x-flv
>
>
>
> Thank you
>


Hi Koray, you can put on Proxy server: General settings, in the field
"Custom options"

emulate_httpd_log on

(You can put your own custom options here, separated by semi-colons (;).
They'll be added to the configuration. They need to be squid.conf native
options, otherwise squid will NOT work. )

The output is like:

192.168.1.10 - - [21/Dec/2010:14:43:26 -0300] "GET
http://www.google.com.ar/ig/cp/get? HTTP/1.1" 304 245 TCP_MISS:DIRECT




-- 
Luis G. Coralle
Departamento de Informática
Facultad de Ciencias Médicas
Universidad Nacional del Comahue
Av. Luis Toschi y Los Arrayanes
Cipolletti - Río Negro
Tel. 0299 - 4782603 INT. 24 / Fax 0299 - 4776140
http://medicina.uncoma.edu.ar/

Reply via email to