Page 1 of 1

How to find what sent the NZB?

Posted: October 12th, 2015, 7:29 am
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?

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

Posted: October 12th, 2015, 8:37 am
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?