Undeprecate logparser
Until dynamic file tailing can be added to the tail plugin.
This commit is contained in:
parent
5b5b2e3b39
commit
710c101fe0
|
@ -1,11 +1,5 @@
|
||||||
## v1.8 [unreleased]
|
## 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
|
### New Inputs
|
||||||
|
|
||||||
- [activemq](./plugins/inputs/activemq/README.md) - Contributed by @mlabouardy
|
- [activemq](./plugins/inputs/activemq/README.md) - Contributed by @mlabouardy
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# Logparser Input Plugin
|
# 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
|
The `logparser` plugin streams and parses the given logfiles. Currently it
|
||||||
has the capability of parsing "grok" patterns from logfiles, which also supports
|
has the capability of parsing "grok" patterns from logfiles, which also supports
|
||||||
regex patterns.
|
regex patterns.
|
||||||
|
@ -10,9 +8,6 @@ regex patterns.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[inputs.logparser]]
|
[[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.
|
## Log files to parse.
|
||||||
## These accept standard unix glob matching rules, but with the addition of
|
## These accept standard unix glob matching rules, but with the addition of
|
||||||
## ** as a "super asterisk". ie:
|
## ** as a "super asterisk". ie:
|
||||||
|
|
|
@ -54,9 +54,6 @@ type LogParserPlugin struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
const sampleConfig = `
|
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.
|
## Log files to parse.
|
||||||
## These accept standard unix glob matching rules, but with the addition of
|
## These accept standard unix glob matching rules, but with the addition of
|
||||||
## ** as a "super asterisk". ie:
|
## ** 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
|
// Start kicks off collection of stats for the plugin
|
||||||
func (l *LogParserPlugin) Start(acc telegraf.Accumulator) error {
|
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()
|
l.Lock()
|
||||||
defer l.Unlock()
|
defer l.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue