How to find what sent the NZB?

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
snazzycrisp
Newbie
Newbie
Posts: 1
Joined: October 12th, 2015, 7:20 am

How to find what sent the NZB?

Post by snazzycrisp »

I have several programs and nzb sites that send nzb files to my server through the API and when I started it up yesterday it was trying to grab over 400 nzb's. I would like to know the source so I can adjust the settings so this doesn't happen again. Is there something in the logs that I'm not seeing that would indicate what sent each nzb through the API?
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: How to find what sent the NZB via API?

Post by sander »

Set SAB's logging to +Debug, let SABnzb run, and then check the sabnzbd.log for "addfile" (more formal: only lines with "API-call" in them).

For example (you can ignore the first line if you don't know what that means):

Code: Select all

$ cat ~/.sabnzbd/logs/sabnzbd.log | grep -i addfile | cut -c-250

2015-10-12 15:21:22,812::DEBUG::[interface:421] API-call from ::ffff:127.0.0.1 [curl/7.38.0] {'output': 'json', 'apikey': 'dab2a318bc2dc4633fab076a88a596f6', 'mode': 'addfile', 'name': FieldStorage('name', 'Taxi.nzb', '<?xml version="1.0" encoding="i
So that API-call was done from localhost ("127.0.0.1") with the program "curl". The NZB was named "taxi.nzb".

Does this solve your problem?
Post Reply