18 Apr 2024 10:44 AM - last edited on 19 Apr 2024 07:20 AM by MaciejNeumann
In a host screen, we can see logs that have been detected but are not ingested:
How can these be listed via an API call?
I have looked at the data returned from the entity API for this host & also for the process_group (& process_group_instance) and the data isn't in those models.
Solved! Go to Solution.
18 Apr 2024 11:44 AM - edited 18 Apr 2024 11:45 AM
Hi,
Logs are discovered automatically but if you want to ingest then, you need to create logs ingestion rules.
It means, you can check your rules in tenant, host groups or host to know.
It can be checked from API.
Best regards
18 Apr 2024 11:58 AM
Thanks - I know that we need to create ingestion rules. We have developed self-service functionality where users can configure this themselves via code.
However - if the log is not detected, it requires a "custom log source". I can't see an easy way to determine if a custom log source rule is needed for a specified log path, via an API.
27 Apr 2024 08:07 PM
Check the response of /api/v2/entities/{entity-id} with process instance id and look for logFileStatus or logSourceState values. If its not appears try to extend the api timeframe.
HTH
Yos