-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_unit.bash
More file actions
31 lines (27 loc) · 858 Bytes
/
install_unit.bash
File metadata and controls
31 lines (27 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# This script will test the installation and configuration of the ELK Stack
# Reference on using pgrep: https://man7.org/linux/man-pages/man1/pgrep.1.html
# Test Elasticsearch
if docker ps | grep elasticsearch > /dev/null; then
echo "Elasticsearch is running..."
else
echo "Elasticsearch is not running. Please install and configure it."
fi
# Test Kibana
if docker ps | grep kibana > /dev/null; then
echo "Kibana is running..."
else
echo "Kibana is not running. Please install and configure it."
fi
# Test Logstash
if docker ps | grep logstash > /dev/null; then
echo "Logstash is running..."
else
echo "Logstash is not running. Please install and configure it."
fi
# Test Beats
if docker ps | grep filebeat > /dev/null; then
echo "Beats are running..."
else
echo "Beats are not running. Please install and configure them."
fi