Commit Graph

55 Commits

Author SHA1 Message Date
Sven Rebhan 15b92f38c3
fix(inputs.tail): Do not seek on pipes (#16674) 2025-03-24 15:04:49 +00:00
Eugene be6a53defe
fix(inputs.tail): Use correct initial_read_offset persistent offset naming in the code (#16643) 2025-03-21 09:55:31 -05:00
Sven Rebhan 1041d331ae
chore(deps): Bump golangci-lint from v1.63.4 to v1.64.5 (#16512) 2025-02-18 09:23:28 -06:00
clas 2f6d58b94a
feat(input.tail): Add `initial_read_offset` config for controlling read behavior (#16342) 2025-01-27 13:46:36 -06:00
Paweł Żak e57f48f608
chore: Fix linter findings for `revive:exported` in `plugins/inputs/[t-v]*` (#16408) 2025-01-21 09:17:01 -06:00
Paweł Żak b92700f98a
chore: Fix linter findings for `revive:unused-receiver` in `plugins/inputs/[s-z]` (#16327) 2024-12-27 08:33:43 -06:00
Sven Rebhan 35fe105bb4
fix(agent): Restore setup order of stateful plugins to Init() then SetState() (#16123) 2024-11-13 01:21:49 -06:00
Joshua Powers 6874f41739
fix(inputs.tail): Prevent deadlock when closing and max undelivered lines hit (#15649) 2024-07-24 16:24:34 +02:00
Joshua Powers bcafb1d24d
chore: Print debug message when no messages generated from parse (#15463) 2024-06-05 15:22:55 -05:00
ericmiller-wpengine e4d7be0f2b
fix(inputs.tail): Retry opening file after permission denied (#14357) 2023-11-30 15:52:28 -07:00
Sven Rebhan 7ced2606b2
chore(parsers)!: Remove old-style creation (#13310) 2023-05-23 14:17:11 -06:00
Sven Rebhan f87916aaa9
feat: Plugin state-persistence (#12166) 2023-03-01 15:34:48 -07:00
Sebastian Spaink 4913392b85
chore: Remove deprecated build tags (#11867) 2022-09-22 13:25:31 -05:00
Sven Rebhan 4897f86ed7
fix(parsers.csv): Remove direct checks for the parser type (#11825) 2022-09-19 12:15:32 -06:00
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Sven Rebhan 56eb914998
chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
Aleksei Larkov 9d3d5b9414
feat: add ANSI color filter for tail input plugin (#10880) 2022-03-30 09:00:16 -06:00
Ehsan db86904759
fix: directory monitor input plugin when data format is CSV and csv_skip_rows>0 and csv_header_row_count>=1 (#9865) 2021-11-16 15:05:48 -07:00
Sebastian Spaink 3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
David Bennett 78d67ba87b
Add configurable option for the 'path' tag override in the Tail plugin. (#9069)
* Add configurable option for the 'path' tag override in the Tail plugin.

* get test cases to pass

* update default config

* convert to configurable string field
2021-03-31 12:06:13 -04:00
Paweł Żak 74a1acd814
Linter fixes - revive:unused-parameter, unparam, varcheck and unused (#8984)
* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* "nolint"'s removed

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-22 12:21:36 -05:00
Sebastian Spaink 71be90d992
Support exclamation mark to create non-matching list in tail plugin (#8613)
* Replace exclamation mark with caret

* Update README and use table driven tests

* Use ReplaceAll instead

* Use doublestar package instead to glob filepath

* Add license

* Fix order of dependencies

* Doc improvement, maybe better then str replace?

* Forgot to remove nil from test

* Use regex instead of library

* Revert unnecessary change

* Go back to using library
replace string twice to handle edge case
2021-02-16 15:53:50 -06:00
Paweł Żak ba66d4facb
Revive fixes - part 1 (#8797)
* Revive fixes regarding following set of rules:
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.error-return]
[rule.error-strings]
[rule.indent-error-flow]
[rule.errorf]
2021-02-08 11:18:40 -05:00
Steven Soroka 382dac70c7
Semigroupoid multiline (#8167) (#8190)
Co-authored-by: javicrespo <javiercrespoalvez@gmail.com>
Co-authored-by: jcrespo <javier.crespo@ingenico.com>
Co-authored-by: semigroupoid <semigroupoid@users.noreply.github.com>
2020-09-28 18:06:00 -04:00
Daniel Nelson be77fbab31
Support utf-16 in file and tail inputs (#7792) 2020-07-07 12:43:32 -07:00
Daniel Nelson be1dc49ad9
Document distinction between file and tail inputs (#7353) 2020-04-24 16:40:08 -07:00
Daniel Nelson 9a1c26d6cc
Add limit to number of undelivered lines to read ahead in tail (#7210) 2020-03-27 15:40:08 -07:00
David McKay a1bcc0f87b Log file not found errors at debug level in tail input (#6540) 2019-10-21 12:10:56 -07:00
Greg 817c9a69a9 Document and add support to input plugins for logging alias (#6357) 2019-09-23 15:39:50 -07:00
Daniel Nelson 8c2b3addd3
Fix parsing multiple metrics on the first line of tailed file (#6289) 2019-08-21 16:30:55 -07:00
Matthew Crenshaw 981dd5bfc0 Resume from last known offset when reloading in tail input (#6074) 2019-07-11 17:39:59 -07:00
Daniel Nelson 601f499126
Remove tail cleanup call to avoid double decrement (#6089) 2019-07-08 14:48:47 -07:00
Samuel-BF f530ca6e7c Use godirwalk in globpath (#5145) 2018-12-18 14:23:25 -08:00
Trevor Pounds ee056278f5 Enable gofmt code simplification (#4887) 2018-10-19 13:32:54 -07:00
Daniel Nelson b5299f4cc4
Fix cleanup of csv parser options, use per file parser (#4712) 2018-09-18 09:23:45 -07:00
Lee Jaeyong 44c2435f64 Support tailing files created after startup in tail input (#4704) 2018-09-17 16:20:50 -07:00
JongHyok Lee 3f28add025 Added path tag to tail input plugin (#4292) 2018-06-21 17:55:54 -07:00
Daniel Nelson 32f313a6a6 Add polling method to logparser and tail inputs (#3213) 2017-09-11 11:56:04 -07:00
Daniel Nelson ca394fcfb2 Discard logging from tail library (#3128) 2017-08-16 12:06:07 -07:00
Daniel Nelson 287a44de5e Skip compilcation of logparser and tail on solaris (#3113)
Allows compilation for solaris
2017-08-10 12:36:11 -07:00
Daniel Nelson 3ecfd32df5 Allow dos line endings in tail and logparser (#2920)
Parsing dos line ending delimited line protocol is still illegal in most
cases.
2017-06-16 13:16:48 -07:00
Daniel Nelson 052e88ad5e
Fix grammar 2017-04-27 14:59:18 -07:00
Patrick Hemmer 06baf7cf78 use AddError everywhere (#2372) 2017-04-24 11:13:26 -07:00
Daniel Nelson 2d7f612bd7 Use fork of hpcloud/tail (#2595) 2017-03-29 14:25:33 -07:00
Patrick Hemmer 1402c158b7 remove sleep from tests (#2555) 2017-03-24 12:03:36 -07:00
Patrick Hemmer ecbc634221 fix tail input seeking when used with pipe (#2090) 2016-12-16 14:01:49 +00:00