Commit Graph

390 Commits

Author SHA1 Message Date
Andreas Deininger 6814d7af8a
docs: Fix typos (#14359)
Co-authored-by: Josh Powers <powersj@fastmail.com>
2023-11-29 14:47:39 +01:00
Andreas Deininger 17edab98d5
docs(parsers.json_v2): Add links to testdata folder (#14358) 2023-11-28 13:44:54 -07:00
Andreas Deininger 25d4a45c8c
fix(parsers.json v2): Correct wrong name of config option (#14351) 2023-11-28 15:46:41 +01:00
Andreas Deininger d1b316ab1a
docs: Fix typos (#14339) 2023-11-27 07:27:34 -07:00
Joshua Powers 64f56b4cb5
chore(parsers.influx): Add benchmark (#14315) 2023-11-16 22:06:05 +01:00
Sven Rebhan 4f94850c1d
chore(parsers.xpath): Add benchmark for CBOR format (#14314) 2023-11-16 10:14:40 -07:00
Sven Rebhan be88a340de
chore(parsers.xpath): Add benchmark for msgpack format (#14313) 2023-11-16 09:49:19 -07:00
Sven Rebhan e79191a9b4
chore(parsers.xpath): Add benchmark for protocol-buffer format (#14312) 2023-11-16 09:05:04 -07:00
Sven Rebhan 8318d2c700
chore(parsers.avro): Add benchmark for binary format (#14311) 2023-11-16 08:17:28 -07:00
Sven Rebhan 48d6d3c6fb
chore(parsers.binary): Add benchmark (#14310) 2023-11-16 07:23:43 -07:00
Joshua Powers 3a97339cd4
chore: Add benchmark tests for XML and JSON xpath (#14304) 2023-11-16 06:20:38 -07:00
Joshua Powers ba251d8849
chore(parsers): Add benchmarks for avro, collectd, prometheus remote write (#14303) 2023-11-16 11:14:03 +01:00
Joshua Powers a590a1b5b3
fix(parsers.json_v2): Log inner errors (#14296) 2023-11-15 10:14:31 +01:00
Sven Rebhan 5d16330c08
test(parsers): Sort metrics to avoid flaky tests (#14284) 2023-11-13 12:38:47 -07:00
Joshua Powers 6fd41686d3
chore(parsers): Add additional parser benchmarks (#14276) 2023-11-13 09:34:22 +01:00
Joshua Powers 0d106d5822
chore(parsers.csv): Add benchmark test (#14257) 2023-11-10 17:17:41 +01:00
Paweł Żak 8fbea28ab3
chore(linters): Fix findings found by testifylint: expected-actual (#14229) 2023-11-01 14:09:55 -06:00
Paweł Żak 34ae468a8c
chore(linters): Fix findings found by testifylint: len (#14203) 2023-10-31 10:29:53 +01:00
Adam Thornton 38b8a1bcde
fix(parsers.json_v2): Prevent race condition in parse function (#14149) 2023-10-30 09:04:41 +01:00
Paweł Żak fe87db594c
chore(linters): Fix findings found by testifylint: error-nil (#14198) 2023-10-27 07:42:25 -06:00
Sven Rebhan 321c5a4070
test(parsers): Add benchmarks (#14148) 2023-10-25 17:05:25 -06:00
Paweł Żak 97f47c11dd
chore(linters): Fix findings found by testifylint: empty (#14179) 2023-10-25 15:09:13 -06:00
Paweł Żak 7c5b3ea068
chore(linters): Fix findings found by testifylint: compares (#14177) 2023-10-24 15:02:26 -06:00
Paweł Żak 990ffc7222
chore(linters): Fix findings found by testifylint: bool-compare (#14163) 2023-10-24 10:45:17 -06:00
Paweł Żak 171dccb7d7
chore(tools): Bump golangci-lint from v1.54.2 to v1.55.0 (#14155) 2023-10-23 08:12:08 -06:00
Christian Allinson 69612a8e4a
fix(parsers.json_v2): Properly handle optional fields (#14008)
Co-authored-by: Christian Allinson <christian.allinson@rebuildmanufacturing.com>
2023-10-02 10:29:11 +02:00
Adam Thornton cb13577c95
feat(parsers.avro): Support multiple modes for union handling (#13945) 2023-09-27 14:47:36 -06:00
Thomas Casteleyn f58c9555dd
feat(parsers/json_v2): Improve json path log messages (#13994) 2023-09-26 06:43:00 -06:00
Joshua Powers 1b27556feb
fix(parsers.avro): Clean up Warnf error wrapping error (#13961) 2023-09-20 12:50:28 -06:00
Anton Belousov fbe2fb47eb
feat(parsers.avro): Get metric name from the message field (#13914) 2023-09-20 12:14:55 -06:00
Adam Thornton a542899811
fix(parsers.avro): Only attempt to read CA cert file if filename is not empty string (#13939) 2023-09-19 10:42:12 +02:00
Sven Rebhan 9db814d1c5
feat(parsers.avro): Allow connection to https schema registry (#13903) 2023-09-11 11:52:21 -06:00
Adam Thornton 855b25d383
fix(parsers.avro): Do not force addition of timestamp as a field (#13856) 2023-09-11 08:05:40 -06:00
Adam Thornton bfbe195607
fix(parsers.avro): Handle timestamp format checking correctly (#13855) 2023-09-07 14:08:47 -06:00
Sven Rebhan 1d24efe55c
chore(tools): Bump golangci-lint from v1.53.2 to v1.54.2 (#13838) 2023-08-29 07:07:41 -06:00
Joshua Powers 013b73213d
chore: Spell endianness correctly (#13752) 2023-08-14 10:43:32 +02:00
Sven Rebhan 806b7cd67f
fix(parsers.xpath): Handle protobuf maps correctly (#13719) 2023-08-07 15:50:49 -06:00
Lucas Chiesa 3f8e916455
feat(parsers.xpath): Add option to store fields as base64 (#13690) 2023-07-28 08:09:23 -06:00
Sven Rebhan f804d6395e
chore(deps): Bump github.com/antchfx/xpath from v1.2.4 to latest master (#13679) 2023-07-26 11:02:03 -06:00
Sven Rebhan da28cfdb43
fix(parsers.xpath): Ensure precedence of explicitly defined tags and fields (#13662) 2023-07-26 09:44:22 -06:00
Sven Rebhan 64f6c97d13
fix(parsers.xpath): Improve handling of complex-type nodes (#13660) 2023-07-26 07:11:25 -06:00
Sven Rebhan 10f735c2cc
fix(parsers.xpath): Fix field-names for arrays of simple types (#13665) 2023-07-25 07:35:32 -06:00
Sven Rebhan 714f3c187f
feat(parsers.avro): Add support for JSON format (#13607) 2023-07-14 16:05:03 +02:00
Joshua Powers 14f52eae01
feat(parsers.influx): Allow a user to set the timestamp precision (#13419) 2023-07-13 11:09:12 -06:00
Sven Rebhan 57bcdaf695
fix(parsers.xpath): Handle explicitly defined fields correctly (#13550) 2023-07-06 16:16:35 +02:00
trsnx 10c081dab1
fix(parsers.binary): Fix binary parser example in README.md (#13547) 2023-07-05 08:11:32 -06:00
Joshua Powers 657eca5cf0
fix(parsers.grok): Use UTC as the default timezone (#13526) 2023-06-30 19:20:48 +02:00
Sven Rebhan e2fb181a80
feat(parsers.value): Add support for automatic fallback for numeric types (#13506) 2023-06-29 12:13:34 +02:00
Sven Rebhan c35cabda9e
feat(parsers.xpath): Add Concise Binary Object Representation parser (#13480) 2023-06-28 15:26:50 -06:00
Sven Rebhan 97d10a5ee9
fix(internal): Fix time parsing for abbreviated timezones (#13363) 2023-06-02 10:05:55 -06:00
Sven Rebhan 7ced2606b2
chore(parsers)!: Remove old-style creation (#13310) 2023-05-23 14:17:11 -06:00
cui fliter b08a2bb324
chore(docs): Remove repetitive "the" (#13295) 2023-05-22 06:14:01 -06:00
Nick Thomas a808b9f077
feat(parsers.opentsdb): Add OpenTSDB data format parser (#13167) 2023-05-05 07:14:51 -06:00
Joshua Powers 35d1ee3d96
docs: use single quotes for multi-line literal TOML (#13124)
fixes: #13123
2023-04-21 07:24:55 -06:00
Sven Rebhan 302ac88bdb
fix(parsers.grok): Fix nil metric for multiline inputs (#13078) 2023-04-12 16:15:35 -06:00
Paweł Żak 5f2142a6cc
chore: Enable G601 rule for gosec (#13042) 2023-04-12 16:56:07 +02:00
Paweł Żak 55e4bb6808
chore: Enable G103 rule for gosec (#13038) 2023-04-12 07:32:46 -06:00
r3inbowari 19c4316694
chore: Update README.md (#12989) 2023-04-04 13:43:49 +02:00
Paweł Żak c76f319b84
chore: Remove `revive:unhandled-error` - `errcheck` is more flexible (#13008) 2023-04-03 07:19:43 -06:00
Sven Rebhan bea5414384
feat(parsers.xpath): Add timezone handling (#12820) 2023-03-13 12:17:14 +01:00
Adam Thornton acd1500d2b
feat(parsers.avro): Add Apache Avro parser (#11816) 2023-03-02 11:10:47 -07:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Sven Rebhan 245705cf24
fix(parsers.xpath): Fix panic for JSON name expansion (#12724) 2023-02-22 16:30:31 -07:00
Paweł Żak 4201f24020
chore: Fix linter findings for errorlint (part2) (#12702)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-22 12:08:46 +01:00
Frank Inselbuch 0cedfa6398
docs(parsers.json_v2): fix spelling typo (#12711) 2023-02-21 07:16:11 -07:00
Joshua Powers fa26b6498b
docs: remove trailing whitespace (#12660) 2023-02-09 12:35:18 -07:00
Paweł Żak e84bc0c590
chore: clean up import shadowing issues (#12588) 2023-02-01 11:21:38 -07:00
Martin Haaß 82ec689630
fix(json_v2): In case of invalid json, log messsage to debug log (#12440) 2023-01-12 16:16:06 +01:00
Joshua Powers 42640b1def
test(parsers.json): add fuzz test (#12368) 2022-12-13 06:41:08 -07:00
Meceron e264721cb9
feat(parsers.csv): suport null delimiters (#12247) 2022-12-12 09:55:47 -07:00
Sven Rebhan db7cb4ec25
chore: Move host-endianness definition to `internal` (#12360) 2022-12-08 22:04:57 +01:00
Sven Rebhan 6b08068d6d
feat(parsers.grok): add option to allow multiline messages (#12320) 2022-12-07 13:05:02 -07:00
Thomas Casteleyn 712092bd92
feat(parsers.csv): add option for overwrite tags (#12008) 2022-11-30 08:08:19 -07:00
Paweł Żak 960a1f7b14
chore: Fix linter findings for prealloc (part3) (#12246) 2022-11-21 21:53:55 +01:00
Paweł Żak 743e023f84
chore: Fix linter findings for makezero (part1) (#12254) 2022-11-21 21:07:07 +01:00
Sven Rebhan e311435753
feat(parsers.xpath): Allow to specify byte-array fields to encode in HEX (#11999) 2022-11-21 20:56:02 +01:00
Sven Rebhan d2268f04d0
feat(parsers.binary): handle hex-encoded inputs (#12232) 2022-11-16 13:43:13 -07:00
Paweł Żak 0c5d8de5e2
chore: enable lll linter (#12226) 2022-11-11 08:17:15 -07:00
Paweł Żak 6816aefcd5
chore: fix linter findings for unparam and revive.unused-parameter (#12150) 2022-11-08 12:04:12 -07:00
Paweł Żak 7807847356
chore: Wrap long lines in plugins/parsers (#12180) 2022-11-08 18:47:35 +01:00
Thomas Casteleyn 453f36e8ef
chore(parsers.xpath): Add correct deprecation tags (#11986) 2022-10-31 07:42:50 -06:00
Sven Rebhan 393566d9ba
feat(parsers): Add binary parser (#11552) 2022-10-31 14:15:23 +01:00
Joshua Powers 7c1d1755d8
fix(parsers.json_v2): Remove BOM before parsing (#11926) 2022-10-12 13:08:56 -06:00
Sven Rebhan 8ca3b9262a
feat(parsers.xpath): Add option to skip (header) bytes (#11933) 2022-10-11 09:27:07 -06:00
Sven Rebhan 758f2cba7a
fix(parser.xpath): Handle floating-point times correctly (#11875) 2022-10-03 08:32:52 -06:00
Joshua Powers 173d32a201
fix(inputs.influxdb_listener): error on invalid precision (#11866) 2022-10-03 07:23:06 -06:00
Sven Rebhan 4897f86ed7
fix(parsers.csv): Remove direct checks for the parser type (#11825) 2022-09-19 12:15:32 -06:00
Sven Rebhan 2b7cafcdbe
fix(parsers): Unwrap parser and remove some special handling (#11826) 2022-09-19 09:57:24 -06:00
Sven Rebhan 97b4db8438
fix(parsers.xpath): Add array index when expanding names. (#11781) 2022-09-15 15:42:18 -06:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
reimda 07179c466b
chore: Use build tags to select plugins (#11654) 2022-08-15 22:44:59 +02:00
Sven Rebhan 401d2b2a28
chore(parsers.json_v2): Cleanup test by reusing testutil function (#11627) 2022-08-08 11:53:47 -05:00
Sven Rebhan 091380f4b5
fix(parsers): Linter issues (#11607) 2022-08-05 18:16:10 +02:00
Sven Rebhan 3ad9fe73ba
chore: More parser cleanup (#11532) 2022-07-28 15:30:36 -05:00
Sven Rebhan ff17ede62d
feat(parsers.xpath): Add support for returning underlying data-types (#11558) 2022-07-28 07:18:55 -05:00
Martin Molnar 2ac311c4f9
fix(parsers.prometheus): histogram infinity bucket must be allways present (#11490) (#11486) 2022-07-15 07:11:02 -06:00
reimda 4d2ebe587d
fix: Update prometheusremotewrite parser to be a new style parser plugin (#11456) 2022-07-07 20:11:38 -06:00
Sebastian Spaink 9744c3a6a2
feat: Migrate influx and influx_upstream parsers to new style (#11432) 2022-07-06 15:23:13 -05:00
reimda c25f9a0e83
fix: Update prometheus parser to be a new style parser plugin (#11440) 2022-07-06 10:07:53 -06:00
Sebastian Spaink 9e50853ab8
feat: Migrate nagios parser to new style (#11402) 2022-06-30 13:20:32 -05:00