Add errors.txt in artcl_logstash_files

Removing duplicate .txt extension from errors.txt..

Also, Adding errors.txt in artcl_logstash_files so that logstash pick
this up.

As size of logstash file is a factor, Adding errors.txt instead of
individual files seems better approach as errors.txt only contains
error/traceback from different log files.

Change-Id: Ib4519943d6b0ca4607f168318dff11a6d1713796
This commit is contained in:
Sandeep Yadav 2021-06-02 15:45:47 +05:30
parent 64f56ca032
commit ed5c048f4f
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ EXAMPLES = """
sova:
files:
console: /var/log/job-output.txt.gz
errors: /var/log/errors.txt.txt.gz
errors: /var/log/errors.txt.gz
"ironic-conductor": /var/log/ironic-conductor.log.txt.gz
syslog: /var/log/journal.txt.gz
logstash: /var/log/logstash.txt.gz
@ -79,7 +79,7 @@ processed_files:
type: list
sample: [
"/tmp/var/log/job-output.txt.gz",
"/tmp/var/log/errors.txt.txt.gz",
"/tmp/var/log/errors.txt.gz",
"/tmp/var/log/ironic-conductor.log.txt.gz"
]
message:

View File

@ -381,7 +381,6 @@ artcl_logstash_files:
- /home/*/overcloud_delete.log
- /home/*/overcloud_deploy.log
- /home/*/overcloud_deploy_post.log
- /var/log/tempest/tempest/tempest_run.log
- /home/*/overcloud_failed_prepare_resources.log
- /home/*/overcloud-full.log
- /home/*/build-err.log
@ -413,6 +412,7 @@ artcl_logstash_files:
- /var/log/tripleo-container-image-prepare.log
- /var/log/extra/journal_errors.txt
- /var/log/ceph/cephadm.log
- /var/log/extra/errors.txt
# ara_graphite_server: graphite.tripleo.org
# if ara_enabled is false, no ara tasks will be executed

View File

@ -12,7 +12,7 @@
else
ERR_NAME=errors.txt;
fi;
mv /tmp/errors.txt /var/log/extra/${ERR_NAME}.txt
mv /tmp/errors.txt /var/log/extra/${ERR_NAME}
# logstash.txt file format expects to follow a strict format (console) like:
# TIMESTAMP_ISO8601 | message