Hello,
I am trying to view custom logs on elastic cloud on kubernetes using an elastic agent. This is my configuration and I cannot view data on elasticsearch. Elasticsearch and Kibana are running normally and I get metricbeat and filebeat metrics and logs via this elastic agent:
apiVersion: agent.k8s.elastic.co/v1alpha1
kind: Agent
metadata:
name: elastic-agent
spec:
version: 8.7.0
elasticsearchRefs:
- name: elasticsearch
daemonSet:
podTemplate:
spec:
securityContext:
runAsUser: 0
config:
inputs:- name: log
version: latest
type: logfile
enabled: true
use_output: default
meta:
package:
name: switch-log
version: latest
data_stream:
streams:
data_stream:
dataset: sw02.log
type: logs
paths:- /home/pi/swlog/sw02.log*
- name: log