I’m trying to exclude a field called outletCycleTime
from an SNMP table but the fieldexclude
filter has no effect. Is there something wrong with my syntax here? I’m using Telegraf 1.29.2.
[agent]
quiet = true
omit_hostname = true
snmp_translator = "gosmi"
[[inputs.snmp]]
path = ["../mibs/"]
agent_host_tag = "source"
agents = ["10.37.155.163"]
version = 2
community = "public"
[[inputs.snmp.table]]
oid = "1.3.6.1.4.1.1418.6.5"
name = "outletTable"
fieldexclude = ["outletCycleTime"]
Output
$ telegraf --config telegraf_debug.conf --test
2024-01-20T01:50:31Z I! Loading config: telegraf_debug.conf
> outletTable,outletIndex=5,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="5-Mezzo-2",outletStatus=1i 1705715434000000000
> outletTable,outletIndex=6,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="6-Core110f",outletStatus=1i 1705715434000000000
> outletTable,outletIndex=7,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="Outlet-7",outletStatus=1i 1705715434000000000
> outletTable,outletIndex=8,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="8-Roku",outletStatus=1i 1705715434000000000
> outletTable,outletIndex=1,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="1-MacStudio",outletStatus=1i 1705715434000000000
> outletTable,outletIndex=2,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="2-Mezzo-1",outletStatus=1i 1705715434000000000
> outletTable,outletIndex=3,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="3-UltraStudio",outletStatus=1i 1705715434000000000
> outletTable,outletIndex=4,source=10.37.155.163 outletActualStatus=1i,outletControl=1i,outletCycleTime=10i,outletInitialState=2i,outletName="4-MP-60",outletStatus=1i 1705715434000000000