---
title: "Log Properties"
description: "Learn more about searchable log properties."
url: https://docs.sentry.io/concepts/search/searchable-properties/logs/
---

# Log Properties | Sentry Docs

Search logs in [Explore → Logs](https://docs.sentry.io/product/logs.md). The keys below are common properties set by Sentry or the SDKs. Any custom attribute you attach on the log is searchable too, using the same attribute name you set in the SDK.

Raw text search matches `message` only. It does not search the rest of the log. Search is case sensitive by default. Use the **Ignore case** toggle in the search bar to match regardless of case. A regular expression uses `message://pattern//`. See [regular expressions](https://docs.sentry.io/concepts/search.md#regular-expressions-logs-only).

## [Searchable Properties](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#searchable-properties)

These keys can be used in a log search:

### [`message`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#message)

The log message body.

* **Type:** string

### [`message.template`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#messagetemplate)

The parameterized template, when the SDK recorded one. For example, `Adding item {item} for user {user}`.

* **Type:** string

### [`message.parameter.<name>`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#messageparametername)

One parameter from a parameterized message. `<name>` is the parameter name or the positional index, such as `message.parameter.item` or `message.parameter.0`.

* **Type:** string or number, depending on the value the SDK sent

### [`severity`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#severity)

The severity text. One of `trace`, `debug`, `info`, `warn`, `error`, or `fatal`.

* **Type:** string

### [`severity_number`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#severity_number)

The numeric severity. Higher numbers are more severe. SDKs set the low end of each range: `trace` is 1, `debug` is 5, `info` is 9, `warn` is 13, `error` is 17, and `fatal` is 21.

* **Type:** number

### [`timestamp`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#timestamp)

When the log was recorded.

* **Type:** datetime

### [`trace`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#trace)

The trace ID for the active trace when the log was recorded.

* **Type:** string

### [`span_id`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#span_id)

The span the log was emitted from. Empty when no span was active. Older SDKs send the same value as `trace.parent_span_id`.

* **Type:** string

### [`id`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#id)

The log's unique ID.

* **Type:** string

### [`project`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#project)

The project the log belongs to. You can also scope projects with the page filter.

* **Type:** string

### [`environment`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#environment)

The environment set in the SDK, such as `development`, `staging`, or `production`. [Learn more](https://docs.sentry.io/concepts/key-terms/environments.md).

* **Type:** string

### [`release`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#release)

The release set in the SDK. `release:latest` selects the most recent release. [Learn more](https://docs.sentry.io/product/releases/usage/sorting-filtering.md#latest-release).

* **Type:** string

### [`logger.name`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#loggername)

The name of the logger that emitted the log, when the SDK or logging integration set one.

* **Type:** string

### [`origin`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#origin)

Set when an SDK integration captured the log. For example, `auto.log.serilog` or `auto.db.prisma`. Direct calls to the Sentry logger API do not set this.

* **Type:** string

### [`sdk.name`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#sdkname)

Name of the Sentry SDK that sent the log.

* **Type:** string

### [`sdk.version`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#sdkversion)

Version of the Sentry SDK that sent the log.

* **Type:** string

### [`payload_size`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#payload_size)

Size of the log payload, in bytes.

* **Type:** number

### [`replay.id`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#replayid)

The ID of the active replay when the log was recorded.

* **Type:** string

### [`browser.name`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#browsername)

Display name of the browser. Relay parses this from the user agent when the SDK does not set it.

* **Type:** string

### [`browser.version`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#browserversion)

Version of the browser.

* **Type:** string

### [`user.id`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#userid)

Application-specific identifier for the user. Sent when [send default PII](https://docs.sentry.io/platform-redirect.md?next=/data-management/data-collected/) is enabled, or when you set it yourself.

* **Type:** string

### [`user.email`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#useremail)

Email address of the user.

* **Type:** string

### [`user.name`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#username)

Username of the user.

* **Type:** string

### [`server.address`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#serveraddress)

Server address. Backend SDKs attach this.

* **Type:** string

### [`os.name`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#osname)

Operating system name. Mobile, desktop, and native SDKs attach this.

* **Type:** string

### [`os.version`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#osversion)

Operating system version.

* **Type:** string

### [`device.brand`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#devicebrand)

Device brand.

* **Type:** string

### [`device.model`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#devicemodel)

Device model.

* **Type:** string

### [`device.family`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#devicefamily)

Device family.

* **Type:** string

### [`code.file.path`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#codefilepath)

File path captured with the log, when the SDK recorded a code location.

* **Type:** string

### [`code.function.name`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#codefunctionname)

Function name captured with the log.

* **Type:** string

### [`code.line.number`](https://docs.sentry.io/concepts/search/searchable-properties/logs.md#codelinenumber)

Line number captured with the log.

* **Type:** number
