isimei
This page explains how to use the isimei function in APL.
Use the isimei function to check whether a given string is a valid International Mobile Equipment Identity (IMEI) number. IMEIs are unique identifiers assigned to mobile devices, often used in mobile network logs, telecom datasets, and security investigations to distinguish devices.
You can use this function to:
- Validate whether a string field contains a proper IMEI format.
- Filter out malformed or suspicious entries in datasets containing device identifiers.
- Improve data quality when analyzing logs with user agent or device metadata.
isimei is especially useful when dealing with telemetry or audit data where IMEI values are passed through APIs, headers, or form fields, and you want to ensure they conform to a valid format.
Usage
Syntax
isimei(value)Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The value to test for valid IMEI formatting. |
Returns
A bool value:
trueif the input string is a valid IMEI number.falseotherwise.
A valid IMEI is a 15-digit string that passes the Luhn algorithm checksum.
Example
Query
['sample-http-logs']
| extend has_imei = isimei('356938035643809')
| project _time, has_imeiOutput
| _time | has_imei |
|---|---|
| 2025-07-10T08:21:00Z | true |
List of related functions
- isreal: Checks whether a value is a real number.
- iscc: Checks whether a value is a valid credit card (CC) number.
- isstring: Checks whether a value is a string. Use this for scalar string validation.
- isutf8: Checks whether a value is a valid UTF-8 encoded sequence.