cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to retrieve a list of logs being monitored on a host using an API?

sjkim
Visitor

Hi,

I couldn't find a way to retrieve a list of monitored log files. Is there an API for this?

Regards,

Sangjun

4 REPLIES 4

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

You have Log Monitoring API.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Hi, AntonPineiro

Thank you for your reply,

I mean "only the names of monitored log files"..

 

Regards,

SangJun, 

Hi,

Are you in a Grail enabled tenant? Can you use Grail?

I am not sure if that can be done out-of-the-box.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Hi @sjkim 

Logs are associated to process instances hence you will need to utilize the entity APIs.

First with /api/v2/entities & entity type("host") collect all PROCESS_GROUP_INSTANCE ids 

Then for each PROCESS_GROUP_INSTANCE id run /api/v2/entities/{entity-id} and look for logFileStatus or logSourceState key

 

Yosi_Neuman_1-1714221382646.png

HTH

Yos 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts