feat: all the system logs are in victoria logs now
This commit is contained in:
parent
2482182a1c
commit
1d2e55bd75
@ -245,6 +245,11 @@ in
|
|||||||
"/var/log/com.apple.xpc.launchd/launchd.log"
|
"/var/log/com.apple.xpc.launchd/launchd.log"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
syslog_source = {
|
||||||
|
type = "exec";
|
||||||
|
command = ["/usr/bin/log" "stream" "--style" "ndjson"];
|
||||||
|
mode = "streaming";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
transforms = {
|
transforms = {
|
||||||
durnitisp_no_tty = {
|
durnitisp_no_tty = {
|
||||||
@ -256,9 +261,56 @@ in
|
|||||||
.message = strip_ansi_escape_codes(.message) ?? .message
|
.message = strip_ansi_escape_codes(.message) ?? .message
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
syslog = {
|
||||||
|
type = "remap";
|
||||||
|
inputs = [
|
||||||
|
"syslog_source"
|
||||||
|
];
|
||||||
|
source = ''
|
||||||
|
.message = parse_json(.message) ?? .message
|
||||||
|
del(.command)
|
||||||
|
.syslog
|
||||||
|
.eventType = .message.eventType
|
||||||
|
.processImagePath = .message.processImagePath
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
sinks = {
|
sinks = {
|
||||||
victoria = {
|
victoria_vector = {
|
||||||
|
type = "elasticsearch";
|
||||||
|
mode = "bulk";
|
||||||
|
endpoints = [
|
||||||
|
"http://${config.services.victoria-logs.listenAddr}/insert/elasticsearch"
|
||||||
|
];
|
||||||
|
inputs = [
|
||||||
|
"vector"
|
||||||
|
];
|
||||||
|
api_version = "v8";
|
||||||
|
healthcheck.enabled = false;
|
||||||
|
query = {
|
||||||
|
_msg_field = "message";
|
||||||
|
_time_field = "timestamp";
|
||||||
|
_stream_fields = "host,source_type";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
victoria_syslog = {
|
||||||
|
type = "elasticsearch";
|
||||||
|
mode = "bulk";
|
||||||
|
endpoints = [
|
||||||
|
"http://${config.services.victoria-logs.listenAddr}/insert/elasticsearch"
|
||||||
|
];
|
||||||
|
inputs = [
|
||||||
|
"syslog"
|
||||||
|
];
|
||||||
|
api_version = "v8";
|
||||||
|
healthcheck.enabled = false;
|
||||||
|
query = {
|
||||||
|
_msg_field = "message";
|
||||||
|
_time_field = "timestamp";
|
||||||
|
_stream_fields = "host,processImagePath,eventType";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
victoria_files = {
|
||||||
type = "elasticsearch";
|
type = "elasticsearch";
|
||||||
mode = "bulk";
|
mode = "bulk";
|
||||||
endpoints = [
|
endpoints = [
|
||||||
@ -268,7 +320,6 @@ in
|
|||||||
"prometheus"
|
"prometheus"
|
||||||
#"heracles"
|
#"heracles"
|
||||||
"durnitisp_no_tty"
|
"durnitisp_no_tty"
|
||||||
"vector"
|
|
||||||
"victoria-logs"
|
"victoria-logs"
|
||||||
"system"
|
"system"
|
||||||
];
|
];
|
||||||
|
@ -331,7 +331,7 @@ EOF";
|
|||||||
sc-im
|
sc-im
|
||||||
#ocaml
|
#ocaml
|
||||||
#opam
|
#opam
|
||||||
vector
|
unstablePkgs.vector
|
||||||
victoriametrics
|
victoriametrics
|
||||||
# TODO add sonic-pi here if it supports the arch
|
# TODO add sonic-pi here if it supports the arch
|
||||||
unstablePkgs.dbeaver-bin
|
unstablePkgs.dbeaver-bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user