New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fluent-plugin-filecounts

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-plugin-filecounts

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

fluent-plugin-filecount

Fluentd input plugin

Fluentd input plugin that recursively counts the number of files in directories.

Requirements

This plugin uses bash for file expansion and find for searching.

Installation

RubyGems

$ gem install fluent-plugin-filecounts

Fluentd

$ fluent-gem install fluent-plugin-filecounts

Td-Agent

$ td-agent-gem install fluent-plugin-filecounts

Configuration

Fluent::Plugin::FilecountsInput

tag (string) (required)

The tag of the event.

path (string) (required)

The path to monitor

interval (time) (required)

The interval time between periodic request

Plugin helpers

Example

Config

<source>
  @type filecounts
  path '/filestore/{documents,projects}/*'
  tag filecounts
  interval 60s
</source>

Output

2018-12-14 08:15:35.633988091 -0800 filecounts: {"command":"bash -c '\\find /filestore/{documents,projects}/* -name \".*\" -prune -o -print'","time_to_run":18,"host":"myhost"}
2018-12-14 08:15:36.313656422 -0800 filecounts: {"path":"/filestore/documents","count":15,"host":"myhost"}
2018-12-14 08:15:36.313656422 -0800 filecounts: {"path":"/filestore/projects","count":3,"host":"myhost"}
2018-12-14 08:15:36.313656422 -0800 filecounts: {"path":"/filestore/projects/fluent","count":15,"host":"myhost"}
2018-12-14 08:15:36.313656422 -0800 filecounts: {"path":"/filestore/projects/ruby","count":32,"host":"myhost"}
2018-12-14 08:15:36.313656422 -0800 filecounts: {"path":"/filestore/projects/python","count":1,"host":"myhost"}
  • Copyright(c) 2018- Zsolt Fekete
  • License
    • Apache License, Version 2.0

FAQs

Package last updated on 14 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc