UlricE / pen

Pen
Other
250 stars 41 forks source link

Logs are not working #21

Closed waltervargas closed 8 years ago

waltervargas commented 8 years ago

Hi,

I am using the next command (as root):

/usr/local/bin/pen -l /var/log/pen.log -f -U 30089 10.x.x.2x:30089

And the file /var/log/pen.log is empty.

I am doing something wrong ?

Thanks in advance.

UlricE commented 8 years ago

The log is meant for http requests. It logs the client ip, timestamp, server ip and the request. The purpose of the log is to consolidate Apache web server logs by correlating Pen's logs with Apache's, especially useful together with penlog. UDP requests are never logged. I would use tcpdump or wireshark for that.

If you want to log diagnostics, they are sent to the console (stderr) if running in the foreground, otherwise to syslog. You need at least one -d to get diagnostics and I usually recommend that, otherwise Pen may fail silently.

waltervargas commented 8 years ago

Thanks for your answer @UlricE. I will use tcpdump.

Regards.

UlricE commented 8 years ago

Closing since tcpdump is a suitable way to log udp traffic.