Kali Purple SOC: Part 6 – Installing and Configuring Filebeat

Installing Filebeat
SSH Into Kali Purple VM
Download Filebeat
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.6.1-amd64.deb
sudo dpkg -i filebeat-8.6.1-amd64.deb
Modify /etc/filebeat/filebeat.yml to set the connection information
sudo nano /etc/filebeat/filebeat.yml
for setup.kibana
host: "https://192.168.253.6"
setup.kibana.ssl.enabled: true
ssl.certificate_authorities: ["/etc/kibana/kibana-server_ca.crt"]
setup.kibana.ssl.certificate: "/etc/kibana/kibana-server.crt"
setup.kibana.ssl.key: "/etc/kibana/kibana-server.key"

for output.elasticsearch
hosts: ["https://192.168.253.6"]
username: "elastic"
password: "<your_password>"
# If using Elasticsearch's default certificate
ssl.ca_trusted_fingerprint: "<es_cert_fingerprint>"
To find the es cert fingerprint, open another terminal window and input this command:
sudo openssl x509 -fingerprint -sha256 -noout -in /etc/elasticsearch/certs/http_ca.crt | awk 'BEGIN { FS = "=" } ; { print $2 }' | sed 's/://g'

Enable and configure the Elasticsearch module
sudo filebeat modules enable elasticsearch
sudo nano /etc/filebeat/modules.d/elasticsearch.yml

Enable Filebeat (this will take a few minutes)
sudo systemctl enable filebeat --now
Disabling warning “Missing replica shards”
Open Elastic dashboard, click Dev Tools.

Delete all in the console field.

paste the following into the console field:
PUT _settings
{
"number_of_replicas": 0
}
Click the Run (play) icon


Click Stack Management

Follow the instructions in the screenshots below


Once you save, click Stack Monitoring

It should look something like this:
