# Why search log events don't return location information?

**URL:** <https://community.auth0.com/t/why-search-log-events-dont-return-location-information/106987>\
**Category:** Get Help\
**Tags:** logs, management-api\
**Created:** [May 16, 2023, 7:44am UTC](https://community.auth0.com/t/why-search-log-events-dont-return-location-information/106987 "2023-05-16T07:44:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asalam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/asalam/32/47238_2.png) [@asalam](https://community.auth0.com/u/asalam)\
**Post date:** [May 16, 2023, 7:44am UTC](https://community.auth0.com/t/why-search-log-events-dont-return-location-information/106987/1 "2023-05-16T07:44:50Z")

</div>

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Logs/get_logs)**

API mentioned in above document has a dummy response which shows that it returns location information in response. I tried this to fetch information for all users Auth0 is returning everything but no location information I have tried it by adding no fields and by adding location information field with different styles “locationInfo”, “locationinfo”, “location\_info”, “locationinfo”. Is this a known issue or my way of finding it is not correct?

---

<div class="post-metadata">

**Author:** ![di1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/di1/32/42931_2.png) [@di1](https://community.auth0.com/u/di1)\
**Post date:** [February 16, 2024, 1:43am UTC](https://community.auth0.com/t/why-search-log-events-dont-return-location-information/106987/3 "2024-02-16T01:43:02Z")

</div>

Just ran into the same issue. According to the post here [About location\_info inside the log object - #2 by James.Morrison](https://community.auth0.com/t/about-location-info-inside-the-log-object/25646/2), that `location_info` is only available when `ip` is routable. So I tried including `location_info` along with `ip`, and it’s working now.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 16, 2024, 11:29pm UTC](https://community.auth0.com/t/why-search-log-events-dont-return-location-information/106987/4 "2024-02-16T23:29:00Z")

</div>

Thanks for sharing @di1 😄

---

<div class="post-metadata">

**Author:** ![waghmikz892](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/waghmikz892/32/50043_2.png) [@waghmikz892](https://community.auth0.com/u/waghmikz892)\
**Post date:** [February 23, 2024, 3:20am UTC](https://community.auth0.com/t/why-search-log-events-dont-return-location-information/106987/5 "2024-02-23T03:20:37Z")

</div>

You can try including both the `location_info` and `ip` fields in your request, and see if you get the location information in the response. If it works, then it confirms that the location information is only available when the IP address is routable.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 8, 2024, 3:20am UTC](https://community.auth0.com/t/why-search-log-events-dont-return-location-information/106987/6 "2024-03-08T03:20:53Z")

</div>

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