light httpd access logs

could anyone hint me in how/where i may temporary enable the access logging on Vera’s web service ?

i made a cool sript whch populates a Multiswitch with status informations (binary) … which i want to change now, but i forgot which machine actually does the job …

so a grep on the access log would probably solve this mistery :wink:

Just had a quick look on my Vera. It looks like the module that enables access logs is not present in /usr/lib/lighttpd/. So enabling access logs is Hard. Darn.

Could you run tcpdump or Wireshark on a nearby machine and listen in on the request?

Could you turn off your always-on servers one at a time and see which day the action stops running?

yeah i was afraid of an answer like that …

and the scripts i made pretty self sustaining … so i guess the only way to get a total recall is really to shut down the targets one by one … (it ain’t that many anyway) :wink:

@futzle gave a good suggestion in running tcpdump to track it down. This can be done on Vera itself. They’ve put [tt]tcpdump[/tt] into download.mios.com, so it’s easier than it was before.

Now you run the following on Vera:

opkg update opkg install tcpdump tcpdump -i eth0.2 port 80

and you’re off to the races.

NICE !!

i used tcpdump -i eth0:0 port 3480
(on veralite)

however … no traffic on port 80 and 2480 …
so it must be the vera doing it … time to go trough my lua forest :stuck_out_tongue:

at least i know now where to search

Check the interface name that you’re using. It needs to match the exact name returned by ifconfig. Mine is eth0.2, but that’s on a Vera 3 unit.

its eth0:0 on a veralite (just one primary network adapter)

there where tons of requests … but none if my magical multiswitch gets updated.
refreshing my memory turned out harder than expected :stuck_out_tongue:

i did hide it really well … haha

i made a cool sript whch populates a Multiswitch with status informations (binary) ... which i want to change now, but i forgot which machine actually does the job ...
If you went through port IPAddress:3480 this will not be in the web server logs ... Port 3480 goes to the LuaUPnP program. If you went though IPAddress/port_3280 you will find the redirect.

i know that, i maade a tcpdump on both ports 80 and 3480 … but there where no activity …
so the vera must do it …

just have not found it yet …

Also dump the lo interface (loopback), which is where the packets will go if they never leave Vera.

Or better yet …
http://Your.Vera.IP.Address:3480/data_request?id=user_data

Then search that for your script.