8000 Is there plugin for getting count of matched line in logfiles within interval period? · Issue #2448 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Is there plugin for getting count of matched line in logfiles within interval period? #2448
Closed
@kazushima

Description

@kazushima
  • Version of collectd:5.7.1
  • Operating system / distribution:Linux version 4.4.8-20.46.amzn1.x86_64

I am the one who posted issue #2447 .

I'm searching collectd plugin for getting error count in logfiles within interval period.

In case of logfile like following:

[INFO ][Tue Sep 26 18:32:57 JST 2017] information
[ERROR][Tue Sep 26 18:33:40 JST 2017] error occurred
[INFO ][Tue Sep 26 18:34:12 JST 2017] information
[INFO ][Tue Sep 26 18:34:20 JST 2017] information

I want to get result like following and send data to aws cloudwatch:

check-timing, count of matched [ERROR]
Tue Sep 26 18:33:00 JST 2017,0
Tue Sep 26 18:34:00 JST 2017,1
Tue Sep 26 18:35:00 JST 2017,0

It seemed that it could not be realized with the tail plugin.

It may be out of place, but if there is who knows realizable plugin for collectd,
Could you tell me please ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0