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_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_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT"
     }
  • To send access logs, metrics logs and container's logs to the same FORWARD service, you should 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_output_channelType" : "FORWARD",
      "td_agent_out_forward_servers" : "fluentHost1:PORT,fluentHost2:PORT"
     }