Skip to content

Commit

Permalink
Undeprecate logparser
Browse files Browse the repository at this point in the history
Until dynamic file tailing can be added to the tail plugin.
  • Loading branch information
danielnelson authored and Mathieu Lecarme committed Apr 17, 2020
1 parent cc44720 commit 983bc10
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
6 changes: 0 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
## v1.8 [unreleased]

### Release Notes

- With the addition of the standalone `grok` input data format, the
`logparser` input plugin has been deprecated in favor of using the `tail`
input plugin combined with `data_format="grok"` .

### New Inputs

- [activemq](./plugins/inputs/activemq/README.md) - Contributed by @mlabouardy
Expand Down
5 changes: 0 additions & 5 deletions plugins/inputs/logparser/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Logparser Input Plugin

### **Deprecated in version 1.8**: Please use the [tail](/plugins/inputs/tail) plugin with the `grok` [data format](/docs/DATA_FORMATS_INPUT.md).

The `logparser` plugin streams and parses the given logfiles. Currently it
has the capability of parsing "grok" patterns from logfiles, which also supports
regex patterns.
Expand All @@ -10,9 +8,6 @@ regex patterns.

```toml
[[inputs.logparser]]
## DEPRECATED: The `logparser` plugin is deprecated in 1.8. Please use the
## `tail` plugin with the grok data_format instead.

## Log files to parse.
## These accept standard unix glob matching rules, but with the addition of
## ** as a "super asterisk". ie:
Expand Down
6 changes: 0 additions & 6 deletions plugins/inputs/logparser/logparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ type LogParserPlugin struct {
}

const sampleConfig = `
## DEPRECATED: The 'logparser' plugin is deprecated in 1.8. Please use the
## 'tail' plugin with the grok data_format as a replacement.
## Log files to parse.
## These accept standard unix glob matching rules, but with the addition of
## ** as a "super asterisk". ie:
Expand Down Expand Up @@ -126,9 +123,6 @@ func (l *LogParserPlugin) Gather(acc telegraf.Accumulator) error {

// Start kicks off collection of stats for the plugin
func (l *LogParserPlugin) Start(acc telegraf.Accumulator) error {
log.Println("W! DEPRECATED: The logparser plugin is deprecated in 1.8. " +
"Please use the tail plugin with the grok data_format as a replacement.")

l.Lock()
defer l.Unlock()

Expand Down

0 comments on commit 983bc10

Please sign in to comment.