Thanks, this looks like what @michel_kessler was suggesting, but it gives more detail. I also tried what @Shaoranlaos suggested, and that worked as well - I will need to process the filename for the databases which share a host, and therefore an agent, but I do prefer the environment variable to mangling the hostname for our setup.
curiousdba
(Paul)
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Fleet managed Elastic Agent environment/deployment name? custom field? | 12 | 1338 | September 30, 2021 | |
| Tagging incoming data per environment | 3 | 90 | October 7, 2024 | |
| Add Elastic Agent tags to log events | 8 | 1648 | October 6, 2022 | |
| Environment Variable as Custom Field - Fleet Policy | 7 | 207 | July 4, 2025 | |
| How to pass variables to filebeat through the Elastic-Agent? | 3 | 881 | September 8, 2023 |