Elastic agent not sending logs to elastic search

HI All,

i am able to launch the elastic agent and fleet successfully
[ec2-user@ip-172-31-56-159 testlogs]$ sudo /usr/bin/elastic-agent status
┌─ fleet
│ └─ status: (HEALTHY) Connected
└─ elastic-agent
└─ status: (HEALTHY) Running

but i am not able to send logs or metrics

[ec2-user@ip-172-31-56-159 testlogs]$ tail -n 20 /home/ec2-user/testlogs/firsttest.log
THis is a testlog
HELLOWORLD
HELLOWORLD

i used the below elastic.yml for elastic agent
[ec2-user@ip-172-31-52-201 elastic-agent-8.11.1-linux-x86_64]$ cat elastic-agent.yml
id: 54dab730-a274-11ee-81bd-b55c6dbf9195
revision: 13
outputs:
default:
type: elasticsearch
hosts:
-
ssl.ca_trusted_fingerprint: ac76fd1059ec015383059c09b6179e62c9698c87d71684a1c44294407b5d581d
username: elastic
password: 7bYj71tS0x90vprzcZ_9
inputs:

  • id: testlogs
    name: log-1
    revision: 1
    index: test_index
    type: logfile
    use_output: default
    meta:
    package:
    name: log
    version: 2.3.0
    data_stream:
    namespace: default
    package_policy_id: 996742b4-ffa3-4312-81e2-6c3ff9c1df70
    streams:
    • id: logfile-log.logs-996742b4-ffa3-4312-81e2-6c3ff9c1df70
      data_stream:
      dataset: generic
      paths:
      • /home/ec2-user/testlogs/firsttest.log
        ignore_older: 72h
        signed:
        data: >-
        eyJpZCI6IjU0ZGFiNzMwLWEyNzQtMTFlZS04MWJkLWI1NWM2ZGJmOTE5NSIsImFnZW50Ijp7ImZlYXR1cmVzIjp7fSwicHJvdGVjdGlvbiI6eyJlbmFibGVkIjpmYWxzZSwidW5pbnN0YWxsX3Rva2VuX2hhc2giOiJFRVpuM1ZzNnd3VTJRWHhydFdZREZVVHphZTBrRFVac1QxTGMxcmlYeXhBPSIsInNpZ25pbmdfa2V5IjoiTUZrd0V3WUhLb1pJemowQ0FRWUlLb1pJemowREFRY0RRZ0FFcWlrU21aeExyMjU4N0tJMkUrT2pBN1pGb0ZsSzJiSk5SUU9FOHo1dGI0TFBHM3JSaElXY3FtM1ByeTlzVXhGa3RqTVZDeTZWRTA1bHQzV21pOHZTc2c9PSJ9fSwiaW5wdXRzIjpbeyJpZCI6ImxvZ2ZpbGUtbG9ncy05OTY3NDJiNC1mZmEzLTQzMTItODFlMi02YzNmZjljMWRmNzAiLCJuYW1lIjoibG9nLTEiLCJyZXZpc2lvbiI6MSwidHlwZSI6ImxvZ2ZpbGUifSx7ImlkIjoiZG9ja2VyL21ldHJpY3MtZG9ja2VyLTc3ZDUxNzNiLTlhNTYtNGI4Ny04NzRjLTA4NmU1MmZhZWRlNCIsIm5hbWUiOiJkb2NrZXItMSIsInJldmlzaW9uIjoxLCJ0eXBlIjoiZG9ja2VyL21ldHJpY3MifSx7ImlkIjoiZmlsZXN0cmVhbS1kb2NrZXItNzdkNTE3M2ItOWE1Ni00Yjg3LTg3NGMtMDg2ZTUyZmFlZGU0IiwibmFtZSI6ImRvY2tlci0xIiwicmV2aXNpb24iOjEsInR5cGUiOiJmaWxlc3RyZWFtIn0seyJpZCI6ImxvZ2ZpbGUtbG9ncy1mMmFmYWNiYi04ZjE2LTQzMTUtODkyOS1jZDM0ZmU0ZTgyZDgiLCJuYW1lIjoibG9nLTIiLCJyZXZpc2lvbiI6MSwidHlwZSI6ImxvZ2ZpbGUifV19
        signature: >-
        MEUCIQDJLwtwnwpyTetOeUK/0aexagyRCj0ZJWqmxQuW3XdqlwIgMuH/Hgbu+08KZ2mKRAjHmMJFvyUjktuauc23yapMJrk=
        secret_references:

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