Recipe for Forward
See the Log Service Configuration Properties table for valid values.
tml_log_properties.json
- For access logs:
{ "tmg-internal-statusCheck":"OFF", "tmgc_log_service_logLevel" : "info", "logserviceURL" : "localhost", "td_agent_output_channelType" : "FORWARD", "td_agent_out_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT" }
- For metrics logs :
{ "tmg-internal-statusCheck":"OFF", "tmgc_log_service_logLevel" : "info", "logserviceURL" : "localhost", "td_agent_metric_output_channelType" : "FORWARD", "td_agent_out_metric_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT" }
- For Container's logs :
{ "tmg-internal-statusCheck":"OFF", "tmgc_log_service_logLevel" : "info", "logserviceURL" : "localhost", "td_agent_container_output_channelType" : "FORWARD", "td_agent_out_container_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT" }
- For Verbose logs :
{ "tmg-internal-statusCheck":"OFF", "tmgc_log_service_logLevel" : "info", "logserviceURL" : "localhost", "td_agent_verbose_output_channelType" : "FORWARD", "td_agent_out_verbose_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT" }
- To send access logs, metrics logs, container's logs and verbose logs to the different
FORWARD service, you must distinguish the different logs by providing different index values. For example:
{ "tmg-internal-statusCheck":"OFF", "tmgc_log_service_logLevel" : "info", "logserviceURL" : "localhost", "td_agent_container_output_channelType" : "FORWARD", "td_agent_metric_output_channelType" : "FORWARD", "td_agent_verbose_output_channelType" : "FORWARD", "td_agent_output_channelType" : "FORWARD", "td_agent_out_container_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT", "td_agent_out_metric_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT", "td_agent_out_verbose_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT" }
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.