Mathieu Lecarme
473b64b376
Better error report, and more logical variable place.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
caa7db0f77
Fix: it's ok to stop the connection.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
1c88584d21
Don't buffer before reading JSON. JSON draining looks far better.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
3471ce066e
Close the websocket.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
066d2a1dc5
Forever loop over loki websocket can be stopped.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
ae718e0557
Fix: unreachable return
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
1d7bce7064
Fix: path can be / or empty
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
e57150ae1d
Fix: New request error handling.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
24f67c0fe5
Default config mode is tail.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
0dad75b91b
Better wait. Defer Close.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
195adbadeb
Wait for ready is a parameter.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
4f1aae754f
Explicit loki error.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
d7a1c6a938
Paginate Loki query.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
a81d52a1ff
FeedLoki routine.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
6bf80ee083
OneShot has its test
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
ea860b1087
Play this test.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
d8d63a2bf8
Fix: parse JSON loki response.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
bf138b9231
Loky query is mandatory
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
48431f20ed
Specific time.Time type for YAML parsing.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
5edcdb6b57
Date or Duration diff
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
c11cbccb2d
More interface implementation
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
17224b8ac0
Fix: unsanitized user input
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
856da41b72
Authorization
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
94d0f55738
Bring your own headers.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
d99feefe2a
Tenant ID.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
c2b3d752a2
DSN.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
c46fb2be6c
OK, it's this test logs, not an old run.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
4570046da6
Simpler JSON.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
6c213828a4
Read loop.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
92e3ea565b
Lazy query. More error.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
6632bcaccd
Handling empty JSON. Does it really happen?
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
5937d6cf44
Since.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
bd28c2c1bc
Fix: specific entry unmarshal
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
b17711ed99
Push log to Loki.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
7037463fcc
Stream test draft.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
01646c7731
Test and fix config.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
437c2af8e2
Prometheus counter. Better URL handling. Streamin acquisition.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
bc6f327998
Ready and Read once.
2023-10-15 21:49:17 +02:00
Mathieu Lecarme
343724be15
loki draft.
2023-10-15 21:49:17 +02:00
blotus
43ef32aa8d
Kafka acquisition: do not create empty events when a read error occurs ( #2466 )
2023-09-13 13:20:36 +02:00
mmetc
d45bec4047
minor log message improvements ( #2455 )
2023-09-12 11:04:56 +02:00
mmetc
c588be0842
golangci-lint: use v1.54, remove unnecessary byte/string conversions ( #2438 )
2023-08-25 16:22:10 +02:00
mmetc
cd9d8f309d
CI: increase test sleep to fix flaky acquisition/file test under win ( #2410 )
...
* CI: increase test sleep to attempt fix for flaky windows acquitition/file test
* wip
2023-08-08 16:11:32 +02:00
mmetc
ffadd42779
update dependency on go-cs-lib; drop the pkg/ part ( #2393 )
2023-07-28 16:35:08 +02:00
blotus
f9ca14f010
add object key in src for S3 acquis ( #2342 )
2023-07-07 10:09:18 +02:00
blotus
1295de928a
Properly match new files on windows when doing file acquisition ( #2329 )
2023-07-06 14:45:38 +02:00
mmetc
bd41f855cf
errors.Wrap -> fmt.Errorf ( #2317 )
2023-06-29 11:34:59 +02:00
mmetc
a910b7beca
non-fatal error if some datasource can't be run (i.e. journalctl but systemd is missing) ( #2309 )
...
This on the other hand, gives a new fatal error when there are no valid datasources.
In the previous version, crowdsec kept running with just a warning if no
acquisition yaml or dir were specified.
2023-06-27 10:13:13 +02:00
mmetc
9beb5388cb
errors.Wrap -> fmt.Errorf; clean up imports ( #2301 )
2023-06-23 14:04:58 +02:00
mmetc
8bfeb7d90d
Update go dependencies ( #2293 )
...
- update fatih/color (fix windows issue)
- update mongo-driver (fix build issue)
- go.mod: merge two "require" blocks
- update semver dependency (same version as indirect dep), fix test checks in cscli setup
- remove gotest.tools dependency (use testify, cstest)
- update x/ exp, mod, sys dependencies
2023-06-22 11:31:41 +02:00