HI, I tried installing filebeat on win10.
used ' .\filebeat.exe -e test config' the output says Config OK.
but while testing output of filebeat using '.\filebeat.exe -e test output' it dsiplays the following error. please help in resolvinf this issue.
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> cd 'C:\Program Files (x86)\ELK\filebeat'
PS C:\Program Files (x86)\ELK\filebeat> .\filebeat.exe -e test output
2021-10-02T15:37:11.570+0530 INFO instance/beat.go:665 Home path: [C:\Program Files (x86)\ELK\filebeat] Config
path: [C:\Program Files (x86)\ELK\filebeat] Data path: [C:\Program Files (x86)\ELK\filebeat\data] Logs path: [C:\Program
Files (x86)\ELK\filebeat\logs]
2021-10-02T15:37:11.571+0530 INFO instance/beat.go:673 Beat ID: 96b66a2f-533c-4b43-b85f-1568a98aeb00
2021-10-02T15:37:11.756+0530 INFO [index-management] idxmgmt/std.go:184 Set output.elasticsearch.index t
o 'filebeat-7.15.0' as ILM is enabled.
2021-10-02T15:37:11.758+0530 INFO [esclientleg] eslegclient/connection.go:100 elasticsearch url: http://localh
ost:9200
elasticsearch: http://localhost:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: ::1, 127.0.0.1
dial up... OK
TLS... WARN secure connection disabled
2021-10-02T15:37:11.772+0530 INFO [esclientleg] eslegclient/connection.go:273 Attempting to connect to Elastic
search version 5.5.0
talk to server... ERROR Connection marked as failed because the onConnect callback failed: could not connect to a comp
atible version of Elasticsearch: 400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":
"No endpoint or operation is available at [_license]"}],"type":"illegal_argument_exception","reason":"No endpoint or ope
ration is available at [_license]"},"status":400}
PS C:\Program Files (x86)\ELK\filebeat>
2021-10-02T16:55:35.306+0530 INFO [monitoring] log/log.go:193 Uptime: 1.5140761s
2021-10-02T16:55:35.309+0530 INFO [monitoring] log/log.go:160 Stopping metrics logging.
2021-10-02T16:55:35.317+0530 INFO instance/beat.go:479 filebeat stopped.
2021-10-02T16:55:35.319+0530 ERROR instance/beat.go:989 Exiting: Failed to start crawler: creating module reloader failed: error checking input configuration: No paths were defined for
input accessing config
Exiting: Failed to start crawler: creating module reloader failed: error checking input configuration: No paths were defined for input accessing config
It is running in the same machine as filebeat or you are using elastic cloud? You can't have both outputs.
The filebeat.yml that you shared has 2 outputs enabled, the one for elastic cloud with cloud.id and cloud.auth and the one with the output.elasticsearch.
The first post you shared shows a bad request, that could mean that you have an Elasticsearch running on 127.0.0.1 on port 9200 but your request was wrong, in this case the error was with the _license endpoint. Are you running the OSS version or other fork in this machine?
You need to provide more information about where your Elasticsearch is running and which version it is.
Second, you shared your cloud.id and cloud.auth, do not share sensitive information on public forums, you should change your elastic cloud password now.
I'm running OSS version. .msi file for windows its 5.5.0 version. I have disabled output for local host. could you guide me to send logs from filebeat to elastic cloud in windows.
And Yes I have changed password before sending you file.
To send data to the elastic cloud using filebeat you just need to configure the cloud.auth and cloud.id setting, is describes in the documentation.
In your first post you were sending data to a local Elasticsearch using filebeat version 7.15, since version 7.13, I think, filebeat can not output data to OSS versions of Elasticsearch as it will check the _license endpoint, also, Elasticsearch 5 is too old, I do not think filebeat 7.X is even compatible with this version.
If you want to send data to this 5.X local instance you need to use Filebeat version 5.X
ok I will follow the documentation and try to send data to cloud. I will get back if I have any problem regarding configuration.
thanks for the support.
and one more thing do we need to install Elasticsearch.exe install on our host to send data to cloud?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.