> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/sql-functions/secondary-functions/information-functions/binlog_gtid_pos.md).

# BINLOG\_GTID\_POS

## Syntax

```bnf
BINLOG_GTID_POS(binlog_filename,binlog_offset)
```

## Description

The BINLOG\_GTID\_POS() function takes as input an old-style [binary log](/docs/server/server-management/server-monitoring-logs/binary-log.md) position in the form of a file name and a file offset. It looks up the position in the current binlog, and returns a string representation of the corresponding [GTID](/docs/server/ha-and-performance/standard-replication/gtid.md) position. If the position is not found in the current binlog, NULL is returned.

## Examples

```sql
SELECT BINLOG_GTID_POS("master-bin.000001", 600);
```

## See Also

* [SHOW BINLOG EVENTS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-binlog-events.md) - Show events and their positions in the binary log

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
