Recipe for TCP Socket

See the Log Service Configuration Properties table for valid values.

tml_log_properties.json
1. For access logs :
 
{
  "tmg-internal-statusCheck":"OFF",
  "tmgc_log_service_logLevel" : "info",
  "logserviceURL" : "localhost",
  "td_agent_metric_output_channelType" : "DEFAULT",
  "td_agent_container_output_channelType" : "DEFAULT",
  "td_agent_output_channelType" : "TCP",
  "td_agent_out_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_tcp_port" : "<valid TCP port number>"
}
 
2. For metrics logs :
 
{
  "tmg-internal-statusCheck":"OFF",
  "tmgc_log_service_logLevel" : "info",
  "logserviceURL" : "localhost",
  "td_agent_output_channelType" : "DEFAULT",
  "td_agent_container_output_channelType" : "DEFAULT",
  "td_agent_metric_output_channelType" : "TCP",
  "td_agent_out_metric_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_metric_tcp_port" : "<valid TCP port number>"
}
 
3. For container/component's logs :
 
{
  "tmg-internal-statusCheck":"OFF",
  "tmgc_log_service_logLevel" : "info",
  "logserviceURL" : "localhost",
  "td_agent_metric_output_channelType" : "DEFAULT",
  "td_agent_output_channelType" : "DEFAULT",
  "td_agent_container_output_channelType" : "TCP",
  "td_agent_out_container_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_container_tcp_port" : "<valid TCP port number>"
}
 
 
NOTE :
User can send all the three types of logs to same destination over tcp
 
{
  "tmg-internal-statusCheck":"OFF",
  "tmgc_log_service_logLevel" : "info",
  "logserviceURL" : "localhost",
  "td_agent_output_channelType" : "TCP",
  "td_agent_out_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_tcp_port" : "<valid TCP port number>",
  "td_agent_metric_output_channelType" : "TCP",
  "td_agent_out_metric_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_metric_tcp_port" : "<valid TCP port number>",
  "td_agent_container_output_channelType" : "TCP",
  "td_agent_out_container_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_container_tcp_port" : "<valid TCP port number>"
}