Undeprecate logparser
Until dynamic file tailing can be added to the tail plugin.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user