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_verbose_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_verbose_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_verbose_output_channelType" : "DEFAULT",
  "td_agent_container_output_channelType" : "TCP",
  "td_agent_verbose_output_channelType" : "DEFAULT",
  "td_agent_out_container_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_container_tcp_port" : "<valid TCP port number>"
}

4. For verbose 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" : "DEFAULT",
  "td_agent_verbose_output_channelType" : "TCP",
  "td_agent_out_verbose_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_verbose_tcp_port" : "<valid TCP port number>"
}
  
NOTE :
User can send all the 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>",
  "td_agent_verbose_output_channelType" : "TCP",
  "td_agent_out_verbose_tcp_host" : "<network reachable hostname or IP address>",
  "td_agent_out_verbose_tcp_port" : "<valid TCP port number>"
}