Skip to content

Simplest way of sending access.log to remote SigNoz instance? #2384

Answered by rwjack
rwjack asked this question in Q&A
Discussion options

You must be logged in to vote

To recap, I installed the otelcollector deb package (otelcol_0.72.0_linux_amd64.deb) with the following config.yaml:

receivers:
  filelog:
    include: [ /var/log/traefik/access.log ]
    start_at: beginning
    operators:
      - type: json_parser
        timestamp:
          parse_from: attributes.time
          layout: '%Y-%m-%d,%H:%M:%S %z'
      - type: move
        from: attributes.message
        to: body
      - type: remove
        field: attributes.time
processors:
  batch:
    send_batch_size: 10000
    send_batch_max_size: 11000
    timeout: 10s
exporters:
  otlp/log:
    endpoint: http://SIGNOZ_IP:4138
    tls:
      insecure: true
service:
  pipelines:
    logs:
      receivers

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nityanandagohain
Comment options

Answer selected by rwjack
Comment options

You must be logged in to vote
1 reply
@rwjack
Comment options

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