Skip to content

Filecount Input on windows 32bit #11823

@dennisbleul

Description

@dennisbleul

Relevant telegraf.conf

[global_tags]

[agent]
  interval = "10s"
  round_interval = true
  metric_batch_size = 10000
  metric_buffer_limit = 100000
  collection_jitter = "1s"
  flush_interval = "10s"
  flush_jitter = "1s"
  precision = "1ms"
  debug = true
  quiet = false
  logtarget = "stderr"
  logfile_rotation_interval = 0
  logfile_rotation_max_size = "5MB"
  logfile_rotation_max_archives = 10
  hostname = ""
  omit_hostname = false

###############################################################################
#                            INPUT PLUGINS                                   #
###############################################################################


[[inputs.filecount]]
  interval = "10s"
  collection_jitter = "1s"
  directories = ["C:/Tools"]
   name = "*"
   recursive = true
  regular_only = true
  follow_symlinks = false
   size = "0B"
  mtime = "0s"


###############################################################################
#                            OUTPUT PLUGINS                                   #
###############################################################################


[[outputs.file]]
  files = ["stdout", "C://Users//ProduLocalAdmin//Desktop//metrics.out"]
  data_format = "influx"

Logs from Telegraf

2022-09-16T07:40:19Z I! Starting Telegraf 1.24.0
2022-09-16T07:40:19Z I! Available plugins: 205 inputs, 9 aggregators, 26 processors, 20 parsers, 57 outputs
2022-09-16T07:40:19Z I! Loaded inputs: filecount
2022-09-16T07:40:19Z I! Loaded aggregators:
2022-09-16T07:40:19Z I! Loaded processors:
2022-09-16T07:40:19Z I! Loaded outputs: file
2022-09-16T07:40:19Z I! Tags enabled: host=FWBOX-PC-A3PT
2022-09-16T07:40:19Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"FWBOX-PC-A3PT", Flush Interval:10s
2022-09-16T07:40:19Z D! [agent] Initializing plugins
2022-09-16T07:40:19Z D! [agent] Connecting outputs
2022-09-16T07:40:19Z D! [agent] Attempting connection to [outputs.file]
2022-09-16T07:40:19Z D! [agent] Successfully connected to outputs.file
2022-09-16T07:40:19Z D! [agent] Starting service inputs
2022-09-16T07:40:20Z E! [inputs.filecount] Error in plugin: EOF
2022-09-16T07:40:29Z D! [outputs.file] Buffer fullness: 0 / 100000 metrics
2022-09-16T07:40:30Z E! [inputs.filecount] Error in plugin: EOF
2022-09-16T07:40:39Z D! [outputs.file] Buffer fullness: 0 / 100000 metrics
2022-09-16T07:40:40Z E! [inputs.filecount] Error in plugin: EOF
2022-09-16T07:40:50Z E! [inputs.filecount] Error in plugin: EOF
2022-09-16T07:40:50Z D! [outputs.file] Buffer fullness: 0 / 100000 metrics
2022-09-16T07:40:55Z D! [agent] Stopping service inputs
2022-09-16T07:40:55Z D! [agent] Input channel closed
2022-09-16T07:40:55Z I! [agent] Hang on, flushing any cached metrics before shutdown
2022-09-16T07:40:55Z D! [outputs.file] Buffer fullness: 0 / 100000 metrics
2022-09-16T07:40:55Z I! [agent] Stopping running outputs
2022-09-16T07:40:55Z D! [agent] Stopped Successfully

System info

Telegraf 1.24.0, Windows Embedded Standard 32 bit

Docker

No response

Steps to reproduce

  1. Starting Telegraf Service. It does not matter how I start the telegraf software.

Expected behavior

It counts all files

Actual behavior

In the log file after each interval for each file in the folder the error message
2022-09-16T07:40:50Z E! [inputs.filecount] Error in plugin: EOF

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behaviorplatform/windowsplugin/input1. Request for new input plugins 2. Issues/PRs that are related to input plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions