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

View File

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