# Store apm agent log in file

**URL:** https://discuss.elastic.co/t/store-apm-agent-log-in-file/337099
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [June 28, 2023, 2:33pm UTC](https://discuss.elastic.co/t/store-apm-agent-log-in-file/337099 "2023-06-28T14:33:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)
#### Post date: [June 28, 2023, 2:33pm UTC](https://discuss.elastic.co/t/store-apm-agent-log-in-file/337099/1 "2023-06-28T14:33:41Z")

</div>

Hi  
Normally APM work like this:  
APMAgent\>APMServer\>Elastic\>kibana

1-Is it possible to store APMAgent log in file after that import in Elastic? Like this  
APMAgent\>file

2-Then feed log file to APMServer  
file\>APMServer\>Elastic\>kibana

FYI:I have two separate environment, first is 1, second is 2.

Any idea?  
Thanks

---

<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: [July 26, 2023, 2:33pm UTC](https://discuss.elastic.co/t/store-apm-agent-log-in-file/337099/2 "2023-07-26T14:33:52Z")

</div>

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