How to find what sent the NZB?
Forum rules
Help us help you:
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.
-
- Newbie
- Posts: 1
- Joined: October 12th, 2015, 7:20 am
How to find what sent the NZB?
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?
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):
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?
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
Does this solve your problem?