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
changes/96/794196/6
Sandeep Yadav 1 year ago
parent 64f56ca032
commit ed5c048f4f
  1. 4
      plugins/modules/sova.py
  2. 2
      roles/collect_logs/defaults/main.yml
  3. 2
      roles/collect_logs/tasks/collect/system.yml

@ -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:

@ -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

@ -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

Loading…
Cancel
Save