Sabnzbd log file with IP Address?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
aftershocks
Newbie
Newbie
Posts: 5
Joined: January 23rd, 2015, 9:41 am

Sabnzbd log file with IP Address?

Post 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...
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sabnzbd log file with IP Address?

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
aftershocks
Newbie
Newbie
Posts: 5
Joined: January 23rd, 2015, 9:41 am

Re: Sabnzbd log file with IP Address?

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd log file with IP Address?

Post 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)
Post Reply