fix: update clio and fix vector remap language

This commit is contained in:
Jeremy Wall 2024-06-05 17:40:02 -04:00
parent 05fe2a58f6
commit 72f254fdd2
2 changed files with 11 additions and 6 deletions

View File

@ -165,6 +165,9 @@
services.vector.enable = true;
services.vector.settings = {
data_dir = "/var/lib/vector";
api = {
enabled = true;
};
sources = {
prometheus = {
type = "file";
@ -197,12 +200,14 @@
};
};
transforms = {
strip_tty = {
durnitisp_no_tty = {
type = "remap";
inputs = [
"durnitisp"
];
source = ".message = strip_ansi_escape_codes(.message)";
source = ''
.message = strip_ansi_escape_codes(.message) ?? .message
'';
};
};
sinks = {
@ -215,7 +220,7 @@
inputs = [
"prometheus"
"heracles"
"durnitisp"
"durnitisp_no_tty"
"vector"
];
api_version = "v8";

View File

@ -31,11 +31,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1717548187,
"narHash": "sha256-ytVAw4wfAKHPkL39mc9HnyWhS8UF07Lj6FwKWLpAh7k=",
"lastModified": 1717600017,
"narHash": "sha256-T7urgiReULANio3FWc99Umu+3WhAAez9HuZnJv6QPXk=",
"owner": "zaphar",
"repo": "clio",
"rev": "9c5da58363b2b83ad8fce933996f6131701bbe87",
"rev": "a14ecf4c63a703dc15e5a82b1fd7cdbfe6d8f367",
"type": "github"
},
"original": {