# How can we differentiate logs of master and data-ingest nodes

**URL:** <https://discuss.elastic.co/t/how-can-we-differentiate-logs-of-master-and-data-ingest-nodes/272416>\
**Category:** Elasticsearch\
**Created:** [May 7, 2021, 12:15pm UTC](https://discuss.elastic.co/t/how-can-we-differentiate-logs-of-master-and-data-ingest-nodes/272416 "2021-05-07T12:15:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![knagasri](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@knagasri](https://discuss.elastic.co/u/knagasri)\
**Post date:** [May 7, 2021, 12:15pm UTC](https://discuss.elastic.co/t/how-can-we-differentiate-logs-of-master-and-data-ingest-nodes/272416/1 "2021-05-07T12:15:11Z")

</div>

suppose we deployed elasticsearch cluster in GKE with 2 data-ingest and 2 master pods. When I check the kubectl logs , I am able to see similar logs for both master and data-ingest. Is console logs will be similar for both ?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 7, 2021, 1:13pm UTC](https://discuss.elastic.co/t/how-can-we-differentiate-logs-of-master-and-data-ingest-nodes/272416/2 "2021-05-07T13:13:19Z")

</div>

Each log message includes the name of the node that logged it. You will need to keep track of the names and roles of your nodes elsewhere, or use a naming convention that indicates their roles.

---

<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 4, 2021, 1:13pm UTC](https://discuss.elastic.co/t/how-can-we-differentiate-logs-of-master-and-data-ingest-nodes/272416/3 "2021-06-04T13:13:48Z")

</div>

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