Hi people,
I am currently new to elk stack and have set up elk locally and also have an elastic cloud instance.
So as part of the learning phase I am trying to use filebeat to consume data from Azure.
I have followed the documentation for this Filebeat quick start: installation and configuration | Filebeat Reference [7.13] | Elastic
What I have done so far is; I have a service bus resource whose logs and metrics I want to visualize on Kibana. I have setup an eventhub namespace, an event hub and a storage account.
As per the documentation, I have enabled the Azure module and configured my filebeat.yml to use the local elastic search (running on my machine)
I have observed two things:
- When running the setup command
.\filebeat.exe setup
or just for the dashboards.\filebeat.exe setup --dashboards
I keep getting this error message; which indicates that the dashboard isn't being setup
Exiting: 1 error: error loading index pattern: returned 408 to import file: <nil>. Response: {"statusCode":408,"error":"Request Time-out","message":"Request Time-out"}
But I do see the index in the index management.
2. But when I create the index pattern, I dont see any logs being recorded in the elastic search.
And my Filebeat yml is very basic
filebeat.inputs:
- type: log
enabled: false
paths:
- /var/log/*.log
# ============================== Filebeat modules ==============================
filebeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading
reload.enabled: true
# ======================= Elasticsearch template setting =======================
setup.template.settings:
index.number_of_shards: 1
#index.codec: best_compression
#_source.enabled: false
setup.template.overwrite: true
# =================================== Kibana ===================================
setup.kibana:
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["http://localhost:9200"]
My Azure.yml is also very straightforward
Azure.yml
- module: azure
# All logs
activitylogs:
enabled: true
var:
eventhub: "myeventhub"
consumer_group: "$Default"
connection_string: "myconnectionstringtoeventhubnamespace"
storage_account: "mystorageaccount"
storage_account_key: "mystorageaccountkey"
I am not sure where it is going wrong.
Does the setup have to setup the dashboard for me to visualize this data.
Otherwise I cant see it. Or the Azure yml is not setup correctly hence not picking the logs.
Is there a way to verify if the azure.yml if working fine or not.
Any suggestions would be helpful
Thanks