# How to find all tags configured with tag history?

**URL:** <https://forum.inductiveautomation.com/t/how-to-find-all-tags-configured-with-tag-history/51675>\
**Category:** Ignition\
**Created:** [October 6, 2021, 8:07pm UTC](https://forum.inductiveautomation.com/t/how-to-find-all-tags-configured-with-tag-history/51675 "2021-10-06T20:07:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jshaffer09](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jshaffer09](https://forum.inductiveautomation.com/u/jshaffer09)\
**Post date:** [October 6, 2021, 8:07pm UTC](https://forum.inductiveautomation.com/t/how-to-find-all-tags-configured-with-tag-history/51675/1 "2021-10-06T20:07:43Z")

</div>

It has been awhile that I changed over to using just Transaction groups. I was wondering if there is a way to find the remaining ones left that where setup with tag history?

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [October 7, 2021, 9:48pm UTC](https://forum.inductiveautomation.com/t/how-to-find-all-tags-configured-with-tag-history/51675/2 "2021-10-07T21:48:26Z")

</div>

Try running the following code in your script console. Note that if your tags exist under a tag provider other than ‘[default]’, you’ll need to change line 5 to reflect that. If there are thousands of tags with history configured, the printed results may be too long to see them all in the script console, so they may need to be written to giant string which is saved directly to your workstation as a .txt file once the for loop has completed.

Edit: I should probably state that the following will only work in version 8.1.2 and above.

```auto
filters =	{
			'tagType'	: 'AtomicTag',
			'recursive'	: True
			}			
provider = '[default]'
for tag in system.tag.browse(provider, filters).getResults():
	if 'history' in str(dict(tag).get('attributes', '')):
		 print str(tag['fullPath'])

```

---

<div class="post-metadata">

**Author:** ![jshaffer09](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jshaffer09](https://forum.inductiveautomation.com/u/jshaffer09)\
**Post date:** [October 15, 2021, 3:06pm UTC](https://forum.inductiveautomation.com/t/how-to-find-all-tags-configured-with-tag-history/51675/3 "2021-10-15T15:06:35Z")

</div>

> [@swolnisty](#):
>
> ```auto
> filters =	{
> 'tagType'	: 'AtomicTag',
> 'recursive'	: True
> }			
> provider = '[default]'
> for tag in system.tag.browse(provider, filters).getResults():
> if 'history' in str(dict(tag).get('attributes', '')):
> print str(tag['fullPath'])
> 
> ```

I am on version 8.1.2, I ran the script and I got no results so I am assuming there is none left.
