Skip to content

How to tail emqx container's stdout in telegraf sidecar container. #328

Answered by Rory-Z
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe you can printout EMQX log to emptyDir ,just like this:

apiVersion: apps.emqx.io/v1beta3
kind: EmqxBroker
metadata:
  name: emqx
spec:
  emqxTemplate:
    image: emqx/emqx:4.4.6
    config:
      log.to: both
      log.dir: /mounted/log
    extraVolumeMounts:
    - name: logs
      mountPath: /mounted/log 
    extraVolumes:
    - name: logs
      emptyDir: {}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Rory-Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant