API for fetching logs

Hi there,

I am looking for a way to fetch the Logs I have created. I want to show these Logs in my application so I can expose an endpoint to a client. Is there any endpoint from where I can retrieve the logs? Thanks.

Regards,
Baqar

Hi, @bmangrani: You may use the NerdGraph API to execute an NRQL query, such as: SELECT * FROM Log.

Note that NRQL queries return a maximum of 2000 results per query. I am not aware of another method to query or export log data.

Hi Phil,

Thank you very much. That worked fine.

Hi there,

I am looking for a way to fetch the Logs I have created. I want to show these Logs in my application so I can expose an endpoint to a client. Is there any endpoint from where I can retrieve the logs? Thanks.

Regards,
Baqar

@philweber Yeah the API is working fine. But I was wondering if that can be achieved via the DLL of NewRelic .NET Agent.

I do not know of a way to fetch logs using the .NET APM agent. You may view the available agent API functions here: Guide to using the .NET agent API | New Relic Documentation