How to resolve "Unknown function: 'iplocation'" issue?

Param Singh 25 Reputation points
2025-03-17T13:21:48.6266667+00:00

Hi -

I am trying to use the 'iplocation()' function within my Sentinel logic rules but I keep incurring an error stated that the function is unknown even though everything I've read states the function is valid.

I had read to enable geolocation within my Sentinel workspace but I don't see any option to do so.

Any guidance into resolving this issue would be sincerely appreciated.

Thanks!

Microsoft Security | Microsoft Sentinel
{count} votes

Accepted answer
  1. Clive Watson 7,866 Reputation points MVP Volunteer Moderator
    2025-03-17T19:20:30.8333333+00:00

    Hi, the built-in function is

    | extend IPCountry =tostring(geo_info_from_ip_address(ClientIP).country)

    my guess is that the author of the query had a function saved called iplocation() to make the syntax work:

    | extend IPCountry = iplocation(ClientIP).Country

    You should be able to replace the above to fix the issue

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.