Excluding tags on a spessific output plugin


I want to exclude tag on a spessific output. So let sey i have a output to file that look like this

  files = ["/data/raw/imu.json"]
  rotation_interval = "1h"
  rotation_max_archives = -1
  data_format = "json"

in the actual file i get result like this


Under the tags field I get the key name “ts”. I dont want this tag to be written to file. How do I drop this tag when writing to file output. for other outputs I want this tag. The drop statment should only be for this spessific output.


See metric filtering, specifically tagexclude:

tagexclude = ["ts"]