`location_info` not included in get logs response

I saw some related problems being answered here and here but I believe it doesn’t cover my case.

So, if I list the logs for a specific user I get the location_info field included in the result. But if I use the general log query API I get the results without the location_info. I’ve compared the same log entry (by log ID) on the response of the 2 API endpoints and the only difference is that one has the location_info and the other doesn’t.

I’ve already tried to explicitly set the desired fields but the result is the same. Am I doing something wrong?

P.S. I’m using the node SDK
https://auth0.github.io/node-auth0/module-management.ManagementClient.html#getUserLogs
https://auth0.github.io/node-auth0/module-management.ManagementClient.html#getLogs

1 Like

According to the post here About location_info inside the log object - #2 by James.Morrison, that location_info is only available when ip is routable. So I tried including location_info along with ip, and it’s working now.