Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filecount not working on Windows #5621

Closed
Framnk opened this issue Mar 22, 2019 · 2 comments · Fixed by #5630
Closed

Filecount not working on Windows #5621

Framnk opened this issue Mar 22, 2019 · 2 comments · Fixed by #5630
Assignees
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@Framnk
Copy link

Framnk commented Mar 22, 2019

Relevant telegraf.conf:

[[inputs.filecount]]
  ## Directory to gather stats about.
  ##   deprecated in 1.9; use the directories option
  # directory = "/var/cache/apt/archives"

  ## Directories to gather stats about.
  ## This accept standard unit glob matching rules, but with the addition of
  ## ** as a "super asterisk". ie:
  ##   /var/log/**    -> recursively find all directories in /var/log and count files in each directories
  ##   /var/log/*/*   -> find all directories with a parent dir in /var/log and count files in each directories
  ##   /var/log       -> count all files in /var/log and all of its subdirectories
  directories = ["c:/temp"]

  ## Only count files that match the name pattern. Defaults to "*".
  name = "*"

  ## Count files in subdirectories. Defaults to true.
  recursive = false

  ## Only count regular files. Defaults to true.
  regular_only = true

  ## Only count files that are at least this size. If size is
  ## a negative number, only count files that are smaller than the
  ## absolute value of size. Acceptable units are B, KiB, MiB, KB, ...
  ## Without quotes and units, interpreted as size in bytes.
  size = "0B"

  ## Only count files that have not been touched for at least this
  ## duration. If mtime is negative, only count files that have been
  ## touched in this duration. Defaults to "0s".
  mtime = "0s"

System info:

Telegraf 1.10.0~rc1 (git: HEAD 2d2abe2)
Windows 10 x64

Steps to reproduce:

  1. Include filecount plugin config with any Windows path specified
  2. Run telegraf --debug --config --test

Expected behavior:

Should see filecount counters in output

Actual behavior:

Filecount counters never listed.

Additional info:

Telegraf reports in log that filecount plugin was detected, just no output is ever shown. Have tried several folders all containing files.

@danielnelson danielnelson self-assigned this Mar 26, 2019
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Mar 26, 2019
@danielnelson danielnelson added this to the 1.10.2 milestone Mar 26, 2019
@danielnelson
Copy link
Contributor

Reopening based on #5630 (comment)

@danielnelson danielnelson reopened this Jul 2, 2019
@glinton
Copy link
Contributor

glinton commented Jul 9, 2019

closed by #6077

@glinton glinton closed this as completed Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants