# Get server and container information from logs

**URL:** https://discuss.elastic.co/t/get-server-and-container-information-from-logs/300745
**Category:** APM
**Tags:** docker, server, elastic-agent
**Created:** [March 26, 2022, 7:27am UTC](https://discuss.elastic.co/t/get-server-and-container-information-from-logs/300745 "2022-03-26T07:27:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chirag\_Baid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chirag_baid/32/103553_2.png) [@Chirag\_Baid](https://discuss.elastic.co/u/Chirag_Baid)
#### Post date: [March 26, 2022, 7:27am UTC](https://discuss.elastic.co/t/get-server-and-container-information-from-logs/300745/1 "2022-03-26T07:27:09Z")

</div>

I have one development server where I have 5 application containers and 2 containers each running APM-server and heartbeat. We are able to get all the logs and application data. We have another staging server where we wish to fetch all the logs and data just like from our development server. How should I configure such that I get detailed logs in my elastic cloud where the structure of logs include the **server\_name.contianer\_name** which will help us to identify each logs with server and container.

---

<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: [April 16, 2022, 3:27am UTC](https://discuss.elastic.co/t/get-server-and-container-information-from-logs/300745/2 "2022-04-16T03:27:17Z")

</div>

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