Hi All,
I'm experimenting with a cURL API token connection attempt from my local Windows PC to one of our WHM servers.
I can see successful connections being logged here, no problem.
/usr/local/cpanel/logs/api_tokens_log
But when I deliberately make an invalid attempt (e.g. I change the API token to an invalid one), this does NOT get logged to the api_tokens_log.
Which suggests either:
1. We need to enable some sort of extended/enhanced logging for api_tokens_log to also show failed connection attempts, or
2. I'm looking in the wrong log file.
Either way, what I really hope to achieve is logging that gives clarity to the REASON why the connection attempt is unsuccessful. This is to help us debug some remote software that used to successfully connect to one of our WHM servers, but stopped for reasons unknown.
Thx!
I'm experimenting with a cURL API token connection attempt from my local Windows PC to one of our WHM servers.
I can see successful connections being logged here, no problem.
/usr/local/cpanel/logs/api_tokens_log
But when I deliberately make an invalid attempt (e.g. I change the API token to an invalid one), this does NOT get logged to the api_tokens_log.
Which suggests either:
1. We need to enable some sort of extended/enhanced logging for api_tokens_log to also show failed connection attempts, or
2. I'm looking in the wrong log file.
Either way, what I really hope to achieve is logging that gives clarity to the REASON why the connection attempt is unsuccessful. This is to help us debug some remote software that used to successfully connect to one of our WHM servers, but stopped for reasons unknown.
Thx!
Last edited by a moderator: