# NETDATA : cpu, ram , disk event in logs format.

**URL:** <https://community.netdata.cloud/t/netdata-cpu-ram-disk-event-in-logs-format/3346>\
**Category:** Help\
**Tags:** agent\
**Created:** [October 4, 2022, 12:10pm UTC](https://community.netdata.cloud/t/netdata-cpu-ram-disk-event-in-logs-format/3346 "2022-10-04T12:10:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santosh\_Harne](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/santosh_harne/32/2222_2.png) [@Santosh\_Harne](https://community.netdata.cloud/u/Santosh_Harne)\
**Post date:** [October 4, 2022, 12:10pm UTC](https://community.netdata.cloud/t/netdata-cpu-ram-disk-event-in-logs-format/3346/1 "2022-10-04T12:10:06Z")

</div>

How I can capture real time event such cpu , ram consumptions into log format.  
I want the such events in log format to forward the same to my syslog server.

I tired to find the logs file where all these event catpure but no luck.

If anyone help me on the same will be greatful.

Thanks  
santoshH

---

<div class="post-metadata">

**Author:** ![Christopher\_Akritid1](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/christopher_akritid1/32/419_2.png) [@Christopher\_Akritid1](https://community.netdata.cloud/u/Christopher_Akritid1)\
**Post date:** [October 4, 2022, 1:29pm UTC](https://community.netdata.cloud/t/netdata-cpu-ram-disk-event-in-logs-format/3346/2 "2022-10-04T13:29:56Z")

</div>

You could write something that issues http requests to the API’s `/data` endpoint (documentation [here](https://editor.swagger.io/?url=https://raw.githubusercontent.com/netdata/netdata/master/web/api/netdata-swagger.yaml)), and then converts the responses to whatever format you want. If you open your browser’s console, you can see many examples of `data` calls getting issued, when a chart is being updated.

---

<div class="post-metadata">

**Author:** ![andrewm4894](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/andrewm4894/32/125_2.png) [@andrewm4894](https://community.netdata.cloud/u/andrewm4894)\
**Post date:** [October 7, 2022, 10:01pm UTC](https://community.netdata.cloud/t/netdata-cpu-ram-disk-event-in-logs-format/3346/3 "2022-10-07T22:01:26Z")

</div>

If realtime and want one api call the /allmetrics endpoint might be useful too.

[https://london.my-netdata.io/api/v1/allmetrics?format=json](https://london.my-netdata.io/api/v1/allmetrics?format=json)

May save you having to do a call per chart.

But all depends really on what data you want and how.

Allmetrics gets latest collected value while data endpoint would let you query a time range.
