# Filters and tags

## Device filters

As the number of devices in your fleet grows, the device list will become increasingly busy. Filters provide a convenient way to quickly find specific devices based on shared characteristics.

### Add and update filters

To add a filter, click the *Add filter* button near the top-left corner of your fleet page. You'll be presented with a window to configure your filter:

<figure><img src="/files/ET2aFHfOiWVWkIBhiYz8" alt=""><figcaption></figcaption></figure>

The first dropdown lists the device characteristics you can filter on. These characteristics correspond to the columns in your device list. The second dropdown contains comparison operators appropriate to the device characteristic, such as `is`, `is before`, `contains`, and `matches RegEx`. The third field is where you specify a value to filter on.

{% hint style="info" %}
When filtering by [device tags](#device-tags), you can filter by name, value, or both.
{% endhint %}

Click *Add filter* to apply your configuration.

When your filter has been added, you will see it in a box above the device list. The device list will now only show devices that match your filter:

<figure><img src="/files/iDGvJHMMnLLFoeqB1HgX" alt=""><figcaption></figcaption></figure>

If you need to update your filter, simply click it and a new configuration window will appear. To remove, click the `x` to the filter's right. You can add any number of additional filters with the *Add filter* button.

### Create a view

When you create a view, you are saving a specific set of filters that you may want to use again. To do this, click *Save view* on the right side of the filter box:

<figure><img src="/files/QciidjMOoLka5Phh3sd0" alt=""><figcaption></figcaption></figure>

You will be asked to choose a name for the saved view. This view can then be selected at any time by clicking the *Views* button above the filter box.

## Device tags

Tags provide an easy way to include more information about your devices than what is already provided in the dashboard. With tags, you have the option to create key:value pairs that extend the available metadata for your devices. A device can be given multiple tags, and the tags can be used when you create [filters](#device-filters).

### Create and edit tags

To add a tag from the device list, click the checkbox to the left of the devices you wish to tag, followed by the *Tags* button on the right side of the dashboard:

<figure><img src="/files/qZQSszi45UWudb7HtkUt" alt=""><figcaption></figcaption></figure>

You can also manage tags from a device's summary page. The *Manage Tags* option is available in the action dropdown to the right of the *Reboot* and *Restart* buttons:

<figure><img src="/files/o8m2i8rJuriUAjNfreXf" alt=""><figcaption></figcaption></figure>

Both of these options will open the tag management window, from which you can define a name for your tag. Note that tag names cannot be empty, cannot contain spaces, and cannot use the reserved `io.balena` prefix. In addition to a name, you can define a value, although this is optional.

{% hint style="warning" %}
A device cannot have more than one tag with the same name, even if the values are different. If you create a new tag with the same name as an existing tag, the existing tag will be replaced.
{% endhint %}

This example shows how you could create a tag to keep track of device location:

<figure><img src="/files/6W1dvhaIAGjxPFOEzjyr" alt=""><figcaption></figcaption></figure>

Tags you add to your device will appear in a list in the management window. They can be edited or removed from here:

<figure><img src="/files/U5nkJ6ibVjGVgDygJ1tQ" alt=""><figcaption></figcaption></figure>

When you are finished creating and editing tags, click *Apply* to keep the changes.

{% hint style="info" %}
Device tags can also be created and managed programmatically [via the API](https://github.com/balena-io-playground/device-tags).
{% endhint %}

### Tag columns

Once tags have been added to at least one device, a new *All Tags* column will appear on the right side of the device table:

<figure><img src="/files/iNxIuD6AiTF4OkYpDits" alt=""><figcaption></figcaption></figure>

This column can be hidden by clicking the arrow on the far right of the device table header. You can also add columns for specific tags by selecting *Add Tag Column*:

<figure><img src="/files/lJTS2R7WnI7TChrXtKZT" alt=""><figcaption></figcaption></figure>

A new column will be created. You can then select which tag it should display:

<figure><img src="/files/NLjGOm4ATLfM8NbAZ4YJ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.balena.io/learn/manage/filters-tags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
