Laurence Jones
|
c9331d55a8
|
Merge branch 'master' into file_notification_plugin
|
2024-04-25 13:23:10 +01:00 |
|
mmetc
|
0f942a95f1
|
pkg/cwhub - rename methods for clarity (#2961)
* pkg/cwhub - rename methods for clarity
* lint
|
2024-04-24 11:09:37 +02:00 |
|
mmetc
|
97e6588a45
|
cscli hub items: avoid global (#2960)
* cscli hub items: avoid global
* lint (whitespace, errors)
* lint
|
2024-04-24 10:05:55 +02:00 |
|
mmetc
|
c64332d30a
|
cscli config show: avoid globals, use yaml v3 (#2863)
* cscli config show: avoid globals, use yaml v3
* lint (whitespace/errors)
|
2024-04-23 12:28:38 +02:00 |
|
mmetc
|
718d1c54b2
|
pkg/database/decisiosn: remove filter parameter, which is always passed empty (#2954)
|
2024-04-23 11:15:27 +02:00 |
|
mmetc
|
b48b728317
|
cscli support: include stack traces (#2935)
|
2024-04-22 23:54:51 +02:00 |
|
Laurence
|
a822d2ff7e
|
wip: use io copy instead for memory alloc
|
2024-04-08 11:13:31 +01:00 |
|
Laurence
|
cbb817ef96
|
wip: changed my mind, we check when we check file size
|
2024-04-07 19:23:25 +01:00 |
|
Laurence
|
7032a438c3
|
wip: actually check the enabled flag on log rotate
|
2024-04-07 19:21:54 +01:00 |
|
Laurence
|
86668b1f92
|
wip: used return byte count instead of calling a conversion again
|
2024-04-07 17:19:40 +01:00 |
|
Laurence
|
656942a428
|
wip: improve context handling with creating a custom io writer struct which checks the context before attempting to write
|
2024-04-07 17:14:36 +01:00 |
|
Laurence
|
06e178cbdb
|
wip: even if the file has been rotated outside our control we should still compute the file size
|
2024-04-07 16:31:24 +01:00 |
|
Laurence
|
5570cb96fa
|
wip: me no english great
|
2024-04-07 16:03:10 +01:00 |
|
Laurence
|
9f685bbf0f
|
wip: update yaml dep
|
2024-04-07 16:02:26 +01:00 |
|
Laurence
|
69a6ba7603
|
wip: impl log rotation which checks on check append, however, this may cause some issues in slow systems as the mutex lock doesnt give up until the file is rotated, however, the plugin looks for context and will give up if the plugin broker decides its timeout and will retry once the plugin has pushed again
|
2024-04-07 15:45:59 +01:00 |
|
Laurence
|
434e18c42c
|
wip: the plugin should not handle it own data queue since the plugin process may timeout, so instead have a function that uses said context and loop whilst locking the filewriter this may not be the best way 🤷, however, I dont want multiple notifications to attempt to reopen the file if it has been rotated outside of the plugin context
|
2024-04-07 14:30:49 +01:00 |
|
Laurence
|
4b24c5c3d5
|
wip: remove redundant logrus formatter
|
2024-04-07 13:06:46 +01:00 |
|
Laurence
|
4f67510bdf
|
wip: ticker to 2 seconds and lower some log levels
|
2024-04-07 13:05:34 +01:00 |
|
Laurence
|
f50700429c
|
wip: basic impl of file notification no log rotate but might now do it 🤷
|
2024-04-07 12:37:19 +01:00 |
|
Thibault "bui" Koechlin
|
75a50c0c9d
|
improve a bit cscli examples when it comes to list mgmt (#2911)
|
2024-03-20 14:02:29 +01:00 |
|
mmetc
|
d9f2a22ee5
|
cscli metrics -> sort table order (#2908)
|
2024-03-20 13:27:28 +01:00 |
|
mmetc
|
6c042f18f0
|
LAPI: local api unix socket support (#2770)
|
2024-03-14 10:43:02 +01:00 |
|
Thibault "bui" Koechlin
|
b1c09f7512
|
acquisition : take prometheus level into account (#2885)
* properly take into account the aggregation level of prometheus metrics in acquisition
|
2024-03-13 14:57:19 +01:00 |
|
mmetc
|
49e0735b53
|
cscli tests + fix bouncer/machine prune (#2883)
* func tests: "cscli config feature-flags"
* func tests: "cscli bouncers list"
* func tests + fix: "cscli bouncers/machines prune"
* lint
|
2024-03-11 13:14:01 +01:00 |
|
mmetc
|
1eab943ec2
|
crowdsec: remove warning if prometheus port is taken during cold logs processing (#2857)
i.e. remove a "Warning: port is already in use" because it's probably LAPI
|
2024-03-07 14:36:28 +01:00 |
|
mmetc
|
98560d0cf5
|
bin/crowdsec: avoid writing errors twice when log_media=stdout (#2876)
* bin/crowdsec: avoid writing errors twice when log_media=stdout
simpler, correct hook usage
* lint
|
2024-03-07 12:29:10 +01:00 |
|
mmetc
|
d8877a71fc
|
lp metrics: collect datasources and console options (#2870)
|
2024-03-05 14:56:14 +01:00 |
|
mmetc
|
41b43733b0
|
fix: log stack trace while computing metrics (#2865)
|
2024-03-01 10:52:35 +01:00 |
|
mmetc
|
a23fe06d68
|
remove dependencies on enescakir/emoji, gotest.tools (#2837)
* wrap emoji package in pkg/emoji
* remove dependency on enescakir/emoji
* remove dependency on gotest.tools
* lint (whitespace)
|
2024-02-23 16:05:01 +01:00 |
|
mmetc
|
e34af358d7
|
refact cscli (globals) (#2854)
* cscli capi: avoid globals, extract methods
* cscli config restore: avoid global
* cscli hubtest: avoid global
* lint (whitespace, wrapped errors)
|
2024-02-23 10:37:04 +01:00 |
|
Laurence Jones
|
0df8f54fbb
|
Add unix socket option to http plugin, we have to use this in conjunction with URL parameter as we dont know which path the user wants so if they would like to communicate over unix socket they need to use both, however, the hostname can be whatever they want. We could be a little smarter and actually parse the url, however, increasing code when a user can just define it correctly make no sense (#2764)
|
2024-02-22 11:18:29 +00:00 |
|
mmetc
|
3e3df5e4c6
|
refact "cscli config", remove flag "cscli restore --old-backup" (#2832)
* refact "cscli config show"
* refact "cscli config backup"
* refact "cscli confgi show-yaml"
* refact "cscli config restore"
* refact "cscli config feature-flags"
* cscli restore: remove 'old-backup' option
* lint (whitespace, wrapped errors)
|
2024-02-22 11:04:36 +01:00 |
|
mmetc
|
e976614645
|
cscli metrics: rename buckets -> scenarios (#2848)
* cscli metrics: rename buckets -> scenarios
* update lint configuration
* lint
|
2024-02-15 14:34:12 +01:00 |
|
mmetc
|
d34fb7e8a8
|
log processor: share apiclient in output goroutines (#2836)
|
2024-02-13 14:22:19 +01:00 |
|
mmetc
|
a6a4d460d7
|
refact "cscli console" (#2834)
|
2024-02-12 11:45:58 +01:00 |
|
mmetc
|
eada3739e6
|
refact "cscli notifications" (#2833)
|
2024-02-12 11:40:59 +01:00 |
|
mmetc
|
5c83695177
|
refact "cscli explain" (#2835)
|
2024-02-12 11:23:17 +01:00 |
|
mmetc
|
2853410576
|
refact "cscli alerts" (#2827)
|
2024-02-09 17:51:29 +01:00 |
|
mmetc
|
58a1d7164f
|
refact "cscli lapi" (#2825)
|
2024-02-09 17:39:50 +01:00 |
|
mmetc
|
af1df0696b
|
refact cscli metric processing (#2816)
* typos
* refact cscli metric processing
* lint
|
2024-02-07 11:10:25 +01:00 |
|
Thibault "bui" Koechlin
|
3208a40ef3
|
Dedicated whitelist metrics (#2813)
* add proper whitelist metrics : both its own table and an extension to acquis metrics to track discarded/whitelisted lines
|
2024-02-06 18:04:17 +01:00 |
|
mmetc
|
4e724f6c0a
|
refact "cscli" root cmd (#2811)
* refact "cscli" root cmd
* lint (naming, imports, whitespace)
|
2024-02-06 10:50:28 +01:00 |
|
mmetc
|
fdc525164a
|
refact "cscli metrics" part 3 (#2807)
|
2024-02-06 10:07:05 +01:00 |
|
mmetc
|
81acad0d66
|
refact "cscli metrics" part 2 (#2806)
|
2024-02-02 10:40:55 +01:00 |
|
mmetc
|
5ff8a03195
|
refact "cscli metrics" par 1 (#2805)
|
2024-02-02 09:45:03 +01:00 |
|
mmetc
|
4160bb8102
|
refact "cscli decisions" (#2804)
* refact "cscli decisions"
* CI: relax mysql test timing
* lint
|
2024-02-01 22:36:21 +01:00 |
|
mmetc
|
f5fbe4a200
|
refact "cscli dashboard" (#2803)
|
2024-02-01 17:27:15 +01:00 |
|
mmetc
|
45c669fb65
|
refact "cscli papi" (#2802)
|
2024-02-01 17:27:00 +01:00 |
|
mmetc
|
825c08aa9d
|
refact "cscli simulation" (#2801)
|
2024-02-01 17:26:46 +01:00 |
|
mmetc
|
af14f1085f
|
refact "cscli <itemtype>" (#2782)
|
2024-02-01 17:26:06 +01:00 |
|