# Log incoming connection IP?

**URL:** https://discuss.elastic.co/t/log-incoming-connection-ip/323359
**Category:** Elasticsearch
**Created:** [January 17, 2023, 7:39pm UTC](https://discuss.elastic.co/t/log-incoming-connection-ip/323359 "2023-01-17T19:39:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)
#### Post date: [January 17, 2023, 7:39pm UTC](https://discuss.elastic.co/t/log-incoming-connection-ip/323359/1 "2023-01-17T19:39:40Z")

</div>

Maybe this has been answered before. But I can't seem to find it.  
Does anybody know how to enable logging in ES to show the IP address an API is invoked from?  
Things like when an index is created, I see the log with timestamp. But I would like to know from what IP is this command invoked from.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 17, 2023, 7:47pm UTC](https://discuss.elastic.co/t/log-incoming-connection-ip/323359/2 "2023-01-17T19:47:25Z")

</div>

This is only possible if you enable [audit logging](https://www.elastic.co/guide/en/elasticsearch/reference/current/enable-audit-logging.html#enable-audit-logging).

Audit Logging is a paid feature, so it is not available with the Basic free license.

---

<div class="post-metadata">

### Author: ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)
#### Post date: [January 17, 2023, 7:55pm UTC](https://discuss.elastic.co/t/log-incoming-connection-ip/323359/3 "2023-01-17T19:55:17Z")

</div>

thanks for the quick response.

---

<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: [February 14, 2023, 7:55pm UTC](https://discuss.elastic.co/t/log-incoming-connection-ip/323359/4 "2023-02-14T19:55:48Z")

</div>

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