---
title: "State Tracker plugin - How to monitor lines with unique IDs"
description: "The State Tracker plugin allows monitoring of lines with unique IDs using Dynamic Tracking with Templates. This involves marking the Tracker as a Template and defining identifiers with named groups in each key."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004027409-geneos-state-tracker-plugin-how-to-monitor-lines-with-unique-ids/index.html"
---
You can use Dynamic tracking with Templates.

1. Mark the Tracker as a Template.

![stateTracker template](https://docscdn.itrsgroup.com/faq/images/geneos/check-template-box.png)

2. Each key must contain a named group to define the identifier. For example, the log line is:

```
Error: LineMonitor(line3): no data at all during last 65000 ms (at 05:10:44)
```

Then the corresponding key can be:

```
^Error:\s+LineMonitor\((?<id>[\w\d]+)\):\s+(.*)
```

![stateTracker key](https://docscdn.itrsgroup.com/faq/images/geneos/key-logline.png)

3. The resulting dataview would look something like below:

![stateTracker dataview](https://docscdn.itrsgroup.com/faq/images/geneos/statetracker-dataview.png)

For more information, see the [State Tracker plugin documentation](https://docs.itrsgroup.com/docs/geneos/current/collection/state-tracker-config/index.html), and look for the Dynamic Tracking with Templates section.


