# Log Collected Metrics instead of posting to APM server

**URL:** <https://discuss.elastic.co/t/log-collected-metrics-instead-of-posting-to-apm-server/272908>\
**Category:** APM\
**Tags:** java\
**Created:** [May 13, 2021, 12:14pm UTC](https://discuss.elastic.co/t/log-collected-metrics-instead-of-posting-to-apm-server/272908 "2021-05-13T12:14:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anusha\_sunkadh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anusha_sunkadh/32/88710_2.png) [@Anusha\_sunkadh](https://discuss.elastic.co/u/Anusha_sunkadh)\
**Post date:** [May 13, 2021, 12:14pm UTC](https://discuss.elastic.co/t/log-collected-metrics-instead-of-posting-to-apm-server/272908/1 "2021-05-13T12:14:51Z")

</div>

Hi Team,

Happy to use APM agent, thank you for the great documentation.

Is this possible today ? We want to run standalone java application offline, with metrics getting collected in background and whenever the application comes online, agent could start posting collected metrics to APM server.

or if it has a way to report collected metrics to log file, we can ship them anytime when machine is online.

any suggestions on this ?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [May 13, 2021, 12:29pm UTC](https://discuss.elastic.co/t/log-collected-metrics-instead-of-posting-to-apm-server/272908/2 "2021-05-13T12:29:09Z")

</div>

Hi and thanks for the question 👋  
Currently this is not possible.  
However, the APM Server may support spooling to disk soon, and we are considering enabling a setup of local APM Server. If and when both of these efforts are implemented, I think it will enable what you are looking for. Sorry I cannot provide timelines or even issues to track, but you can follow our releases/publications/announcements.

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [May 17, 2021, 11:29am UTC](https://discuss.elastic.co/t/log-collected-metrics-instead-of-posting-to-apm-server/272908/3 "2021-05-17T11:29:21Z")

</div>

This issue tracks the disk-based queue: [Disk Queue GA meta-issue · Issue #22602 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/22602)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 7, 2021, 7:29am UTC](https://discuss.elastic.co/t/log-collected-metrics-instead-of-posting-to-apm-server/272908/4 "2021-06-07T07:29:37Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
