
Have you seen some failed to parse bulk response: expected JSON object
errors in your console while running the daemon? You can safely ignore them.
Collect logs from your application using Filebeat.
Pick a version of Filebeat for your OS on Filebeat download page and install it.
In your filebeat.yml
file, replace current output.*
config to send data to Better Stack:
output.elasticsearch:
hosts: 'https://in-elasticsearch.logs.betterstack.com:443'
headers:
X-Better-Stack-Source-Token: '$SOURCE_TOKEN'
Review the rest of the config to ensure some logs will be read. For example, change enabled: false
to enabled: true
in the default filebeat.inputs
array.
You can read more about input configuration in Filebeat docs.
./filebeat -e -c filebeat.yml
You should see your logs in Better Stack -> Live tail.
Have you seen some failed to parse bulk response: expected JSON object
errors in your console while running the daemon? You can safely ignore them.
Please let us know at hello@betterstack.com.
We're happy to help! 🙏
Want to read about Filebeat configuration in more detail?
Check out the Filebeat documentation.