# Dedup processor plugin

**URL:** <https://community.influxdata.com/t/dedup-processor-plugin/19661>\
**Category:** Systems\
**Tags:** telegraf\
**Created:** [April 29, 2021, 1:52pm UTC](https://community.influxdata.com/t/dedup-processor-plugin/19661 "2021-04-29T13:52:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![salpas](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/salpas/32/5066_2.png) [@salpas](https://community.influxdata.com/u/salpas)\
**Post date:** [April 29, 2021, 1:52pm UTC](https://community.influxdata.com/t/dedup-processor-plugin/19661/1 "2021-04-29T13:52:32Z")

</div>

Hi everyone, I have recently used the influx system.  
I use telegraf to insert points in influxdb.  
I wanted to use dedup plugin to filter and not insert into the db  
metrics that are the exact repetition, unless the timestamp, of the previous value.  
Could I have an example of using the dedup process plugin?

[telegraf/README.md at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/blob/master/plugins/processors/dedup/README.md)

Thanks in advance  
sp

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [April 29, 2021, 5:46pm UTC](https://community.influxdata.com/t/dedup-processor-plugin/19661/2 "2021-04-29T17:46:32Z")

</div>

Hello @salpas,  
What do you mean by

> I wanted to use dedup plugin to filter and not insert into the db  
> metrics that are the exact repetition, unless the timestamp, of the previous value.

I found this a little confusing. Can you please elaborate or provide an example of what you mean?

---

<div class="post-metadata">

**Author:** ![salpas](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/salpas/32/5066_2.png) [@salpas](https://community.influxdata.com/u/salpas)\
**Post date:** [April 29, 2021, 6:44pm UTC](https://community.influxdata.com/t/dedup-processor-plugin/19661/3 "2021-04-29T18:44:29Z")

</div>

Hi Anaisdg, thanks for the reply.

I try to explain the matter better.  
I use telegraf to insert points in influxdb.  
I want to use dedup plugin so that, if the next point is the same as the previous one, it is not inserted in the db

Es.:  
Arrived point :  
**cpu,cpu=cpu0 time\_idle=44i,time\_guest=2i**  
telegram insert in db influx  
next poit:  
**cpu,cpu=cpu0 time\_idle=44i,time\_guest=2i**  
it is the same of previus, telegraf discarded this point and not insert in db.

is it possible using dedup plugin process?

if Yes, is possible un examples?

thanks  
sp

---

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [May 1, 2021, 1:15pm UTC](https://community.influxdata.com/t/dedup-processor-plugin/19661/4 "2021-05-01T13:15:09Z")

</div>

The docs on GitHub are not the best on this one, I had a quick look at it and its only parameter should be the cache duration for values.

1. Passing values are cached
2. upcoming data are matched by key (measurement, tags key and values, field keys)
3. if **any** field value is different from the cached ones, the data is written to the output, and saved in the cache (replacing the previus one)
4. if **all** the field values are equals to the cached ones, the cache “lifetime” is refreshed and nothing is sent to the output

ofc for a key there will be only one cached “row”, the latest

As any other processor, it works on all the data unless you filter it (see [filtering](https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#metric-filtering))

The usage should be as simple as putting this in the conf file.

```auto
[[processors.dedup]]
  ## Maximum time to suppress output
  dedup_interval = "600s"

```

just adjust the cache duration to your gathering interval, the lower the frequency, the higher the cache duration

---

<div class="post-metadata">

**Author:** ![salpas](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/salpas/32/5066_2.png) [@salpas](https://community.influxdata.com/u/salpas)\
**Post date:** [May 3, 2021, 8:32am UTC](https://community.influxdata.com/t/dedup-processor-plugin/19661/5 "2021-05-03T08:32:30Z")

</div>

Hi giovanni, thanks for your replay.  
I tried to use it by putting it in the telegraf.conf file, but it doesn’t seem to work.  
What am I doing wrong?  
Below is my configuration file.  
Thanks in advance for any further feedback

_# Telegraf Configuration_

_# Global tags can be specified here in key=“value” format._  
_[global\_tags]_

_# Configuration for telegraf agent_  
_[agent]_

- interval = “1s”\*
- round\_interval = true\*
- metric\_batch\_size = 20\*
- metric\_buffer\_limit = 10000\*
- collection\_jitter = “0s”\*
- flush\_interval = “1s”\*
- flush\_jitter = “0s”\*
- precision = “”\*
- debug = true\*
- logfile = “/var/log/telegraf/telegraf.log”\*
- hostname = “”\*
- omit\_hostname = false\*

_###############################################################################_  
_# OUTPUTS #_  
_###############################################################################_

_# Configuration for sending metrics to InfluxDB_  
_[[outputs.influxdb]]_

- urls = [“[http://127.0.0.1:8086](http://127.0.0.1:8086)”]\*

- database = “BMS\_LOGGER\_RAW”\*

- skip\_database\_creation = false\*

- retention\_policy = “”\*

_###############################################################################_  
_# PROCESSORS #_  
_###############################################################################_  
_[[processors.dedup]]_

- dedup\_interval = “600s”\*
- 
  - 

_###############################################################################_  
_# INPUTS #_  
_###############################################################################_

_# Windows Performance Counters plugin._  
_# These are the recommended method of monitoring system metrics on windows,_  
_# as the regular system plugins (inputs.cpu, inputs.mem, etc.) rely on WMI,_  
_# which utilize more system resources._  
_#_  
_# See more configuration examples at:_  
_# [telegraf/plugins/inputs/win\_perf\_counters at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/win_perf_counters)_

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/120.txt”]\*

- name\_override=“120\_general\_1”\*

- tagexclude = [“path”,“host”]\*

- from\_beginning = false\*

- watch\_method = “poll” \*

- pipe = false\*

- data\_format = “grok”\*

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:batteryCurrent120}%{WORD2:batteryVoltage120}%{WORD3:stateOfCharge}%{WORD4:stateOfHealth}%{WORD5:bmsState}%{WORD6:aliveCounter}’]\*

- grok\_custom\_patterns = ‘’'\*

- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{4})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})	*

```

- 

```
  WORD5 (?:[0-9A-F]{2})	*

```

- 

```
  WORD6 (?:[0-9A-F]{2})	*

```

- ‘’'\*

- 
  - 

_[[processors.converter]]_

- order = 1\*
- [processors.converter.fields]\*
- unsigned = [“stateOfCharge”,“stateOfHealth”,“aliveCounter”]\*
- integer = [“batteryCurrent120”]\*
- float = [“batteryVoltage120”]\*

_[[processors.compute]]_

- order = 2\*
- missing = “ignore”\*
- [processors.compute.fields]\*
- 

```
  batteryCurrent120 = "batteryCurrent120 / 16.0"*

```

- 

```
  batteryVoltage120 = "batteryVoltage120 / 16.0"*

```

- 

```
  *

```

_[[inputs.tail]]_

- 
## Log files to parse.\*
- files = [“/home/root/SlowWriteCanMW/121.txt”]\*
- name\_override=“121\_general\_2”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:remainingCapacity121}%{WORD2:remainingEnergy}%{WORD3:chargeState}%{WORD4:reserved}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{4})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- ‘’'\*

_[[processors.converter]]_

- order = 3\*
- [processors.converter.fields]\*
- unsigned = [“remainingEnergy”]\*
- float = [“remainingCapacity121”] \*  
_[[processors.compute]]_
- order = 4\*
- missing = “ignore”\*
- [processors.compute.fields]\*
- 

```
  remainingCapacity121 = "remainingCapacity121 / 16.0"*

```

- 
  - 

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/122.txt”]\*
- name\_override=“122\_general\_fast”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:batteryCurrent122}%{WORD2:highestCellVoltage}%{WORD3:lowestCellVoltage}%{WORD4:contactorOpeningPending}%{WORD5:lowestCellNumber}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{4})*

```

- 

```
  WORD3 (?:[0-9A-F]{4})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{2})*

```

- ‘’'\*

_[[processors.converter]]_

- order = 5\*
- [processors.converter.fields]\*
- unsigned = [“highestCellVoltage”,“lowestCellVoltage”,“lowestCellNumber”]\*
- integer = [“batteryCurrent122”]\*

_[[processors.compute]]_

- order = 6\*
- missing = “ignore”\*
- [processors.compute.fields]\*
- 

```
  batteryCurrent122 = "batteryCurrent122 / 16.0"*

```

- 
  - 

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/123.txt”]\*
- name\_override=“123\_voltages”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:lowestCellVoltage123}%{WORD2:lowestCellVoltageNumber123}%{WORD3:highestCellVoltage123}%{WORD4:highestCellVoltageNumber123}%{WORD5:averageCellVoltage123}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{2})*

```

- 

```
  WORD3 (?:[0-9A-F]{4})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{4})*

```

- ‘’'\*

_[[processors.converter]]_

- order = 7 \*
- [processors.converter.fields]\*
- unsigned = [“lowestCellVoltage123”,“lowestCellVoltageNumber123”,“highestCellVoltage123”,“highestCellVoltageNumber123”,“averageCellVoltage123”]\*
- 
  - 

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/124.txt”]\*

- name\_override=“124\_temperatures”\*

- tagexclude = [“path”,“host”]\*

- from\_beginning = false\*

- watch\_method = “poll” \*

- pipe = false\*

- data\_format = “grok”\*

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:lowestTemperatureSensorValue124}%{WORD2:lowestTemperatureSensorNumber124}%{WORD3:highestTemperatureSensorValue124}%{WORD4:highestTemperatureSensorNumber124}%{WORD5:averageCellsTemperature124}%{WORD6:boardLogicTemperature124}%{WORD7:reserved}%{WORD8:maxBalancingHeatsinkTemperature124}’]\*

- grok\_custom\_patterns = ‘’'\*

- WORD1 (?:[0-9A-F]{2})\*

- WORD2 (?:[0-9A-F]{2})\*

- WORD3 (?:[0-9A-F]{2})\*

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{2})*

```

- 

```
  WORD6 (?:[0-9A-F]{2})*

```

- 

```
  WORD7 (?:[0-9A-F]{2})*

```

- 

```
  WORD8 (?:[0-9A-F]{2}) *

```

- ‘’'\*  
_[[processors.converter]]_

- order = 8\*

- [processors.converter.fields]\*

- unsigned = [“lowestTemperatureSensorNumber124”,“highestTemperatureSensorNumber124”]\*

- integer = [“lowestTemperatureSensorValue124”,“highestTemperatureSensorValue124”,“averageCellsTemperature124”,“boardLogicTemperature124”,“maxBalancingHeatsinkTemperature124”]\*

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/125.txt”]\*
- name\_override=“125\_resistance”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:lowestCellResistance125}%{WORD2:lowestCellResistanceNr125}%{WORD3:highestCellResistance125}%{WORD4:highestCellResistanceNr125}%{WORD5:averageCellResistance125}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{2})*

```

- 

```
  WORD2 (?:[0-9A-F]{2})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{2})	*

```

- ‘’'\*

_[[processors.converter]]_

- order = 9\*
- [processors.converter.fields]\*
- unsigned = [“lowestCellResistanceNr125”,“highestCellResistanceNr125”]\*
- 

```
float = ["lowestCellResistance125","highestCellResistance125","averageCellResistance125"]*

```

_[[processors.compute]]_

- order = 10\*
- missing = “ignore”\*
- [processors.compute.fields]\*
- 

```
  lowestCellResistance125 = "lowestCellResistance125 / 8.0"*

```

- 

```
  highestCellResistance125 = "highestCellResistance125 / 8.0"*

```

- 

```
  averageCellResistance125 = "averageCellResistance125 / 8.0"*

```

- 

```
  *

```

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/126.txt”]\*
- name\_override=“126\_setpoints”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:chargeCurrentSetpoint126}%{WORD2:chargeVoltageSetpoint126}%{WORD3:dischargeCurrentSetpoint126}%{WORD4:maxRegCurrentSetpoint126}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{4})*

```

- 

```
  WORD3 (?:[0-9A-F]{4})*

```

- 

```
  WORD4 (?:[0-9A-F]{4})*

```

- ‘’'\*

_[[processors.converter]]_

- order = 11\*
- [processors.converter.fields]\*
- unsigned = [“chargeVoltageSetpoint126”]\*
- float = [“chargeCurrentSetpoint126”,“dischargeCurrentSetpoint126”,“maxRegCurrentSetpoint126”]\*  
_[[processors.compute]]_
- order = 12\*
- missing = “ignore”\*
- [processors.compute.fields]\*
- 

```
  chargeCurrentSetpoint126 = "chargeCurrentSetpoint126 / 16.0"*

```

- 

```
  dischargeCurrentSetpoint126 = "dischargeCurrentSetpoint126 / 16.0"*

```

- 

```
  maxRegCurrentSetpoint126 = "maxRegCurrentSetpoint126 / 16.0"*

```

- 

```
  *

```

- 

```
  *

```

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/130.txt”]\*
- name\_override=“130\_errors”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:warnings130}%{WORD2:errors130}%{WORD3:faults130}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{4})*

```

- 

```
  WORD3 (?:[0-9A-F]{4})*

```

- ‘’'\*

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/131.txt”]\*

- name\_override=“131\_values”\*

- tagexclude = [“path”,“host”]\*

- from\_beginning = false\*

- watch\_method = “poll” \*

- pipe = false\*

- data\_format = “grok”\*

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:cellVoltage131}%{WORD2:cellNumber131}%{WORD3:tempValue131}%{WORD4:tempNumber131}’]\*

- grok\_custom\_patterns = ‘’'\*

- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{2})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2}) *

```

- ‘’'\*

_[[processors.converter]]_

- order = 13\*
- [processors.converter.fields]\*
- unsigned = [“cellVoltage131”,“cellNumber131”,“tempNumber131”]\*
- integer = [“tempValue131”]\*
- 
  - 

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/132.txt”]\*

- name\_override=“132\_io”\*

- tagexclude = [“path”,“host”]\*

- from\_beginning = false\*

- watch\_method = “poll” \*

- pipe = false\*

- data\_format = “grok”\*

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:ioStatusByte0\_132}%{WORD2:ioStatusByte1\_132}%{WORD3:ioStatusByte2\_132}%{WORD4:ioStatusByte3\_132}%{WORD5:ioStatusByte4\_132}’]\*

- grok\_custom\_patterns = ‘’'\*

- 

```
  WORD1 (?:[0-9A-F]{2})*

```

- 

```
  WORD2 (?:[0-9A-F]{2})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{2}) *

```

- ‘’'\*

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/133.txt”]\*
- name\_override=“133\_generics\_1”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:reserved1\_133}%{WORD2:reserved2\_133}%{WORD3:reserved3\_133}%{WORD4:reserved4\_133}%{WORD5:energyIn133}%{WORD6:energyOut133}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{2})*

```

- 

```
  WORD2 (?:[0-9A-F]{2})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{4})*

```

- 

```
  WORD6 (?:[0-9A-F]{4})*

```

- ‘’'\*

_[[processors.converter]]_

- order = 14\*
- [processors.converter.fields]\*
- unsigned = [“energyIn133”,“energyOut133”]\*
- 
  - 

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/134.txt”]\*
- name\_override=“134\_ui”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:commandFromDashboard}%{WORD2:reserved2\_134}%{WORD3:reserved3\_134}%{WORD4:reserved4\_134}%{WORD5:reserved5\_134}%{WORD6:reserved6\_134}%{WORD7:energyIn134}%{WORD8:reserved7\_134}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{2})*

```

- 

```
  WORD2 (?:[0-9A-F]{2})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{2})*

```

- 

```
  WORD6 (?:[0-9A-F]{2})*

```

- 

```
  WORD7 (?:[0-9A-F]{2})*

```

- 

```
  WORD8 (?:[0-9A-F]{2}) *

```

- ‘’'\*
- 
  - 

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/135.txt”]\*
- name\_override=“135\_generic\_2”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:capacityIn135}%{WORD2:capacityOut135}%{WORD3:loadCycles135}%{WORD4:uvFaultsCounter135}%{WORD5:otFaultsCounter135}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{4})*

```

- 

```
  WORD3 (?:[0-9A-F]{4})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{2})*

```

- ‘’'\*
- 
  - 

_[[processors.converter]]_

- order = 15\*
- [processors.converter.fields]\*
- unsigned = [“capacityIn135”,“capacityOut135”,“loadCycles135”,“uvFaultsCounter135”,“otFaultsCounter135”]\*
- 
  - 

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/136.txt”]\*
- name\_override=“136\_generic\_3”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:uvErrorCounter136}%{WORD2:otErrorCounter136}%{WORD3:uvWarningCounter136}%{WORD4:otWarningCounter136}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{4})*

```

- 

```
  WORD2 (?:[0-9A-F]{4})*

```

- 

```
  WORD3 (?:[0-9A-F]{4})*

```

- 

```
  WORD4 (?:[0-9A-F]{4})*

```

- ‘’'\*
- 
  - 

_[[processors.converter]]_

- order = 16\*
- [processors.converter.fields]\*
- unsigned = [“uvErrorCounter136”,“otErrorCounter136”,“uvWarningCounter136”,“otWarningCounter136”]\*

_[[inputs.tail]]_

- files = [“/home/root/SlowWriteCanMW/137.txt”]\*
- name\_override=“137\_details\_bcu”\*
- tagexclude = [“path”,“host”]\*
- from\_beginning = false\*
- watch\_method = “poll” \*
- pipe = false\*
- data\_format = “grok”\*
- 
  - 

- grok\_patterns = [‘%{NUMBER:timestamp:ts-epoch},%{WORD1:fwVersionMajor}%{WORD2:fwVersionMinor}%{WORD3:fwVersionPatch}%{WORD4:bcuVers}%{WORD5:bcuSn}’]\*
- grok\_custom\_patterns = ‘’'\*
- 

```
  WORD1 (?:[0-9A-F]{2})*

```

- 

```
  WORD2 (?:[0-9A-F]{2})*

```

- 

```
  WORD3 (?:[0-9A-F]{2})*

```

- 

```
  WORD4 (?:[0-9A-F]{2})*

```

- 

```
  WORD5 (?:[0-9A-F]{8}) *

```

- ‘’'\*

---

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [May 3, 2021, 6:46pm UTC](https://community.influxdata.com/t/dedup-processor-plugin/19661/6 "2021-05-03T18:46:23Z")

</div>

tbh, I’m not sure…

I’d start by adding the `order = nn` for the dedup processor too, try that and put it as the last one.  
as of now I’m not sure about when is that being executed… I hope after all the other but I cannot guarantee that.

it would be helpful to have a proper formatted conf file, put it in a codeblock next time (wrap it in “```”)
