Skip to main content
Flexible Top Header
Solved

API logging - REST v2 Logs

  • September 8, 2025
  • 4 replies
  • 47 views

Forum|alt.badge.img+2

I’ve not had any success in using the compressed files like “restv2-diagnostics.log.9.gz”. The data is nothing like the v1 logs. It looks as though every line that is in the normal file has a folder named after it and another subfolder resulting in thousands of folders and subfolders with an empty file. It’s not usable. Has anyone figured this out?

Best answer by brian.pfiel

Thanks! this made me think I had a zip tool issue. Using the native one in Windows is where I am having the issue. I have 7zip and that resolved it!

4 replies

rharolde
Forum|alt.badge.img+4
  • DNS/DHCP/IPAM at U of Michigan
  • 724 replies
  • September 8, 2025

My v25 server is only a test server, so the logs have not rolled over, but the log format should be the same as in restv2-diagnostics.log.  If you uncompress restv2-diagnostics.log.9.gz it should look similar.

Try this:
gunzip < restv2-diagnostics.log.9.gz > restv2-diagnostics.log.9.out

 


rharolde
Forum|alt.badge.img+4
  • DNS/DHCP/IPAM at U of Michigan
  • 724 replies
  • September 8, 2025

Some sample lines:

{"id":285,"t":"2025-08-25T16:14:30.783Z","hm":"DELETE","rp":"/api/v2/notificationGroups/2294751/subjects/557056","hs":204,"h":null,"d":54}
{"id":286,"t":"2025-08-25T16:14:30.799Z","tid":115,"u":"rharolde","sid":7059044,"c":"141.xxx.xxx.6","hm":"GET","rp":"/api/v2/users/25073845/favorites","qp":{"total":"true","limit":"20"},"h":{"Accept":"*/*"}}
{"id":288,"t":"2025-08-25T16:14:30.814Z","tid":179687,"u":"rharolde","sid":7059044,"c":"141.xxx.xxx.6","hm":"GET","rp":"/api/v2/notificationGroups/2294751/subjects","qp":{"total":"true","limit":"100","orderBy":"asc(name)","fields":"id,type,_links,name"},"h":{"Accept":"*/*"}}
{"id":289,"t":"2025-08-25T16:15:02.041Z","tid":179699,"u":"rharolde","sid":7059044,"c":"141.xxx.xxx.6","hm":"PATCH","rp":"/api/v2/sessions/current","qp":null,"h":{"Accept":"*/*","Content-Type":"application/merge-patch+json"}}
{"id":289,"t":"2025-08-25T16:15:02.089Z","hm":"PATCH","rp":"/api/v2/sessions/current","hs":200,"h":{"Content-Type":"application/hal+json"},"d":47}
{"id":290,"t":"2025-09-03T19:04:23.948Z","hm":"GET","rp":"/api/v2/sessions/current","hs":401,"h":{"Content-Type":"application/json"},"d":0}
 


Forum|alt.badge.img+2
  • Author
  • Active Resolver
  • 19 replies
  • Answer
  • September 9, 2025

Thanks! this made me think I had a zip tool issue. Using the native one in Windows is where I am having the issue. I have 7zip and that resolved it!


marius.galm
  • Consistent Uptimer
  • 7 replies
  • October 1, 2025

zcat or zless on the bluecat appliance should help.
zgrep can look into zipped logs as well.