How to segregate cloudwatch logs using functionbeat?

I am trying to segregate cloudwatch logs using functionbeat. I deployed two lambda functions having different log group name, function name and deploy bucket. The goal is to get logs from two different environments and view them in kibana separately. I am not quite sure what is the right way to do this. Would it be setting up two different index names? Here's my functionbeat.yml: "" "fb-dev"
  - name: fb-cw-logs-dev
    enabled: true
    type: cloudwatch_logs
    description: "lambda function for cloudwatch logs in dev"
      - log_group_name: dev-api-logs "*****"
cloud.auth: "*****:*****"

  index: "dev-api-logs-%{[agent.version]}-%{+yyyy.MM.dd}"

setup.template.enabled: true "dev-api-logs-%{[agent.version]}-*"
setup.template.pattern: "dev-api-logs-%{[agent.version]}-*"
setup.template.overwrite: true
  enabled: true
setup.ilm.enabled: false
setup.ilm.rollover_alias: "dev-api-logs"
  - add_host_metadata: ~
  - add_cloud_metadata: ~

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.