Skip to content

Send hostname instead of IP address when logging #7618

Closed Answered by frezbo
aivanov-citc asked this question in Q&A
Discussion options

You must be logged in to vote

This was my old vecotr config:

role: Agent
dnsPolicy: ClusterFirstWithHostNet
customConfig:
  data_dir: /vector-data-dir
  sources:
    vector_metrics:
      type: internal_metrics
    host_metrics:
      type: host_metrics
    k8s_logs:
      type: kubernetes_logs
    k8s_api_server_audit_logs:
      type: file
      host_key: ${VECTOR_SELF_NODE_NAME}
      include:
        - /var/log/audit/kube/*.log
    talos_kernel_logs:
      type: socket
      mode: tcp
      address: 127.0.0.1:9301
      decoding:
        codec: json
    talos_service_logs:
      type: socket
      mode: tcp
      address: 127.0.0.1:9302
      decoding:
        codec: json
  sinks:
    k8s:
      type: loki
      i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aivanov-citc
Comment options

Answer selected by aivanov-citc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants