My X-Openstack-Request-Id is not showing up in opensearch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
**Bug Report**
What happened:
Hi.
If I enter my request id as stated in the documentation https:/
Requests without my request id go well, I see an entry in opensearch
2023-08-06 03:51:31.951 35 INFO nova.api.
But when i send my own tracking request id 'X-Openstack-
curl --location 'http://
--header 'X-Auth-Token: $TOKEN' \
--header 'X-Openstack-
it is not in Opensearch, there is an entry in /var/log/
2023-08-06 03:51:31.885 34 INFO nova.api.
The parser kolla-venv/
(\S+ req-)?(
is missing an entry to handle the extra request id field.
What you expected to happen:
Fluentd config needs an extra field for Request ID
How to reproduce it:
curl --location 'http://
--header 'X-Auth-Token: $TOKEN' \
--header 'X-Openstack-
Regex is available at: https:/
**Environment**:
* OS (e.g. from /etc/os-release): Rocky Linux
* Kernel (e.g. `uname -a`): 5.14.0-
* Docker version if applicable (e.g. `docker version`): Docker version 20.10.21, build baeda1f
* Kolla-Ansible version (e.g. `git head or tag or stable branch` or pip package version if using release): https:/
* Docker image Install type (source/binary): binary
* Docker image distribution: zed
* Are you using official images from Docker Hub or self built?
* If self built - Kolla version and environment used to build:
* Share your inventory file, globals.yml and other configuration files if relevant
cat kolla-venv/
#jinja2: trim_blocks: False
{% if fluentd_
<source>
@type tail
path {% for service in fluentd_
exclude_path ["/var/
pos_file /var/run/
tag kolla.*
ignore_
enable_
<parse>
@type multiline
format_
format1 /^(?<Timestamp>\S+ \S+) (?<Pid>\d+) (?<log_level>\S+) (?<python_
time_key Timestamp
keep_time_key true
time_format %F %T.%L
</parse>
</source>
{%- endif %}
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
It might be possible to change to something like this https:/ /rubular. com/r/SVuMoBgd2 IbEoA request_ id>\S+) (?<request_id>\S+) (?<user_id>\S+) (?<tenant_id>\S+) (?<domain_id>\S+) (?<system_ scope>\ S+) (?<user_domain>\S+) (?<project_ domain> \S+)|-)
(\S+ )?((?<x_