refs #1666 add missing master pipeline to journalbeat and changes mysql port in datasource

oglog-script
Luis Gerardo Romero Garcia 2025-04-28 06:57:08 +02:00
parent a06396fb2f
commit d3002f1ba5
4 changed files with 11 additions and 2 deletions

View File

@ -8,7 +8,7 @@
"typeName": "MySQL",
"typeLogoUrl": "public/app/plugins/datasource/mysql/img/mysql_logo.svg",
"access": "proxy",
"url": "__OGCORE_IP__:3336",
"url": "__OGCORE_IP__:3306",
"user": "root",
"password": "root",
"database": "ogcore",

View File

@ -11,6 +11,7 @@ output.elasticsearch:
hosts: ["https://oglog-os.${SUBDOMAIN}:9200"]
username: "admin"
password: "${OPENSEARCH_INITIAL_ADMIN_PASSWORD}"
pipeline: "master_pipeline"
protocol: "https"
ssl.enabled: true
ssl.verification_mode: full

View File

@ -129,6 +129,14 @@
"if" : "ctx.syslog?.identifier == 'docker'"
}
},
{
"json": {
"field": "message",
"target_field": "parsed_message",
"ignore_failure": true,
"if": "ctx.syslog?.identifier == 'ogcore'"
}
},
{
"set" : {
"field" : "debug",

View File

@ -349,7 +349,7 @@ while IFS= read -r line; do
log "$line"
done < <(./import_grafana.sh "https://oglog-graf.${SUBDOMAIN}:3000")
systemctl restart grafana-server
DURATION=$SECONDS