cob
October 28, 2011 12:34PM
It does seem to be logging some access (on my local network and then looping back in from my router's IP), but I'm not seeing access from someone external to my house. I can see that a connection exists in netstat, I can see my transmitted bytes incrementing when I look at eth0, but nginx has failed to log this to the access.log. Obfuscations were made to protect the innocent.

Here is netstat:

tcp 0 197100 home-srv.local:8000 ip1-2-3-5.aj.:52927 ESTABLISHED

Here you can see eth0 tx incrementing (pulled within a second of each other):

root@home-srv:/var/log# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 48:5b:39:86:b0:09
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::4a5b:39ff:fe86:b009/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:367829 errors:0 dropped:0 overruns:0 frame:0
TX packets:481053 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26445268 (26.4 MB) TX bytes:707235638 (707.2 MB)
Interrupt:41 Base address:0x6000

root@home-srv:/var/log# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 48:5b:39:86:b0:09
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::4a5b:39ff:fe86:b009/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:367948 errors:0 dropped:0 overruns:0 frame:0
TX packets:481279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26453570 (26.4 MB) TX bytes:707562874 (707.5 MB)
Interrupt:41 Base address:0x6000

And here you can see nginx has not logged any file access today. This is where the log ends, I have not accessed the server today. 99.99.99.99 was my wife accessing the URL I sent her for this file she was trying to get to her friend, she clicked the link I emailed her, which was to our external IP on port 8000 (residential VDSL, incoming 80 is blocked).

192.168.1.104 - - [27/Oct/2011:22:46:34 -0500] "GET / HTTP/1.1" 200 133 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
192.168.1.104 - - [27/Oct/2011:22:46:34 -0500] "GET /favicon.ico HTTP/1.1" 200 133 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
192.168.1.104 - - [27/Oct/2011:22:46:34 -0500] "GET /favicon.ico HTTP/1.1" 200 133 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
192.168.1.104 - - [27/Oct/2011:22:50:27 -0500] "GET /file.zip HTTP/1.1" 200 194826552 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
192.168.1.104 - - [27/Oct/2011:22:53:52 -0500] "GET /file.zip HTTP/1.1" 200 154165552 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0"
99.99.99.99 - - [27/Oct/2011:22:58:42 -0500] "GET /file.zip HTTP/1.1" 200 24232852 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
Subject Author Posted

nginx not logging access

cob October 28, 2011 12:34PM

Re: nginx not logging access

cob October 28, 2011 03:33PM

Re: nginx not logging access

Maxim Dounin October 28, 2011 04:16PM

Re: nginx not logging access

cob October 28, 2011 06:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready