brew install elasticsearch kibana heartbeat metricbeat filebeat
the elasticsearch installed by homebrew is oss version (without x-pack)
echo "network.host: 0.0.0.0" >> sudo tee -a /usr/local/etc/elasticsearch/elasticsearch.yml
curl -X GET 'http://localhost:9200'
open http://localhost:5601/status
brew services start heartbeat
brew services start metricbeat
brew services start filebeat
url="http://localhost:5601"
time_field="@timestamp"
index_pattern="heartbeat-*"
id="heartbeat-*"
curl -f -XPOST -H "Content-Type: application/json" -H "kbn-xsrf: anything" \
"$url/api/saved_objects/index-pattern/$id?overwrite=true" \
-d"{\"attributes\":{\"title\":\"$index_pattern\",\"timeFieldName\":\"$time_field\"}}"
url="http://localhost:5601"
time_field="@timestamp"
index_pattern="metricbeat-*"
id="metricbeat-*"
curl -f -XPOST -H "Content-Type: application/json" -H "kbn-xsrf: anything" \
"$url/api/saved_objects/index-pattern/$id?overwrite=true" \
-d"{\"attributes\":{\"title\":\"$index_pattern\",\"timeFieldName\":\"$time_field\"}}"
url="http://localhost:5601"
time_field="@timestamp"
index_pattern="filebeat-*"
id="filebeat-*"
# Create index pattern
curl -f -XPOST -H "Content-Type: application/json" -H "kbn-xsrf: anything" \
"$url/api/saved_objects/index-pattern/$id?overwrite=true" \
-d"{\"attributes\":{\"title\":\"$index_pattern\",\"timeFieldName\":\"$time_field\"}}"
Uh oh!
There was an error while loading. Please reload this page.