Undeprecate logparser

Until dynamic file tailing can be added to the tail plugin.
This commit is contained in:
Daniel Nelson 2018-09-07 16:13:46 -07:00
parent 5b5b2e3b39
commit 710c101fe0
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
3 changed files with 0 additions and 17 deletions

View File

@ -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

View File

@ -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.
@ -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:

View File

@ -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:
@ -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()