User Agent
Synopsis
Parses user agent strings to extract information about the browser, operating system, and device.
Schema
user_agent:
- field: <ident>
- description: <text>
- extract_device_type: <boolean>
- if: <script>
- ignore_failure: <boolean>
- ignore_missing: <boolean>
- on_failure: <processor[]>
- on_success: <processor[]>
- properties: <enum>
- tag: <string>
- target_field: <ident>
Configuration
Field | Required | Default | Description |
---|---|---|---|
field | Y | - | Field containing the user agent string |
description | N | - | Explanatory note |
extract_device_type | N | false | Extract device type information |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | false | If true , quietly exit if field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
properties | N | all | Properties to include in output |
tag | N | - | Identifier |
target_field | N | user_agent | Field to store the parsed details |
Details
The processor extracts key information including browser name and version, operating system details, and device platform. It handles a wide range of user agent formats and can store the parsed information in a structured format.
warning
Some user agents may be spoofed or contain incorrect information. The information is provided as reported without validating its accuracy.
Examples
Full User Agent
Parsing a detailed Chrome user agent... |
|
extracts all the available information: |
|
Invalid User Agents
Processing an invalid or unknown user agent... |
|
preserves the original string: |
|
Target Field
Storing the parsed details in a specific field... |
|
includes the device information: |
|