Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to specify the profile used by fluentd

Shulou Source: shulou.com Published: 2022-06-02 07:03:14 11月12日 Update

This article mainly explains "how to specify the configuration file used by fluentd". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to specify the configuration file used by fluentd".

The default configuration file used by Fluentd is / etc/td-agent/td-agent.conf.

If we have multiple configuration files, how do we specify which one to use as the master configuration? The answer is in the startup script.

In the / etc/init.d/td-agent file, the configuration is as follows:

TD_AGENT_OPTIONS= "--use-v1-config" only needs to add the-c option to this configuration item to specify the configuration file. Essentially, the-c parameter is passed to td-agent.

TD_AGENT_OPTIONS= "--use-v1-config-c / etc/td-agent/td-agent-test.conf"

Thank you for reading, the above is the content of "how to specify the configuration file used by fluentd". After the study of this article, I believe you have a deeper understanding of how to specify the configuration file used by fluentd, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Configuration files learning content parameters multiple that is ideas situations articles more essence knowledge knowledge points answers articles scripts follow questions practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple Redmi Linux Huawei