Page 1 of 1
Sabnzbd log file with IP Address?
Posted: March 30th, 2018, 12:34 pm
by aftershocks
Hi there,
I was wondering if sabnzbd maintains a log file with the recorded IP address (source) of the person who adds a NZB file via the gui?
I cannot seem to find anything that has that information... Does that exist?
Thanks...
Re: Sabnzbd log file with IP Address?
Posted: March 31st, 2018, 1:55 am
by safihre
Yes and no, when an external program uses the API its logged. When it's done from the interface, it's not logged.
Only unsuccessful login attempts are logged for the interface.
Re: Sabnzbd log file with IP Address?
Posted: March 31st, 2018, 3:35 pm
by aftershocks
I tried logging into the gui and then checked the logs - I didn't see any IP addresses or successful login attempt...
Do I have to change the log level to something else for it to show?
Re: Sabnzbd log file with IP Address?
Posted: April 1st, 2018, 12:49 am
by sander
aftershocks wrote: ↑March 31st, 2018, 3:35 pm
I tried logging into the gui and then checked the logs - I didn't see any IP addresses or successful login attempt...
Do I have to change the log level to something else for it to show?
Needed Log level:
Default for unsuccessful logins.
Raise to +INFO to see successful logins.
Code: Select all
$ cat sabnzbd.log | grep -i login
2018-03-23 07:07:24,722::INFO::[interface:549] Successful login from 127.0.0.1 (X-Forwarded-For: x.y.80.137)
2018-03-24 21:23:31,056::INFO::[interface:747] Successful login from 127.0.0.1 (X-Forwarded-For: x.y.80.137)
2018-03-31 18:32:39,207::INFO::[interface:747] Successful login from 127.0.0.1 (X-Forwarded-For: x.y.80.137)
2018-03-31 20:15:23,044::INFO::[interface:747] Successful login from 127.0.0.1 (X-Forwarded-For: x.y.80.137)
2018-04-01 07:46:25,854::WARNING::[interface:758] Unsuccessful login attempt from 127.0.0.1 (X-Forwarded-For: x.y.80.137)