Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 646f44c

Browse files
authored
Merge pull request #279 from elastic/rwaight-patch-1
SIEM-at-Home Example Updates
2 parents d9f7eb8 + 9b0dd0d commit 646f44c

File tree

10 files changed

+205
-77
lines changed

10 files changed

+205
-77
lines changed

Security Analytics/SIEM-at-Home/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Monitoring your servers and workstations doesn't have to be difficult or expensi
33
1. [Getting started](https://www.elastic.co/blog/elastic-siem-for-small-business-and-home-1-getting-started)
44
2. [Securing cluster access](https://www.elastic.co/blog/elastic-siem-for-small-business-and-home-2-securing-cluster-access)
55
3. [GeoIP data and Beats config review](https://www.elastic.co/blog/elastic-siem-for-small-business-and-home-3-geoip-data-and-beats-config-review)
6-
4. Beats on Windows _(coming soon)_
6+
4. [Beats on Windows](https://www.elastic.co/blog/elastic-siem-for-small-business-and-home-4-beats-on-windows)
7+
78

89
## `beats-configs`
910
Example configurations for beats when deploying an Elastic SIEM at Home running on Elasticsearch Service

Security Analytics/SIEM-at-Home/beats-configs/auditbeat/auditbeat-windows.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

Security Analytics/SIEM-at-Home/beats-configs/beats-general-config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Configuration applicable for all beats on a specific device
2-
#================================ General =====================================
2+
#=== General ===
33
name: myHostName
44
tags: ["myTag", "myHostName"]
55
fields:
66
env: myEnv
77
version: 11-26-2019
88

9-
#========================== Top Level Processor ===============================
9+
#=== Top Level Processor ===
1010
processors:
1111
- add_host_metadata:
1212
# netinfo.enabled should be set to `false` until GitHub issue
@@ -51,7 +51,7 @@ processors:
5151
destination.geo.name: myHomeLocation
5252
target: ''
5353

54-
#============================= Elastic Cloud ==================================
54+
#=== Elastic Cloud ===
5555
# These settings simplify using beats with the Elastic Cloud (https://cloud.elastic.co/).
5656
cloud.id: "My_Elastic_Cloud_Deployment:abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"
5757
cloud.auth: "data_shipper:0987654321abcDEF"
@@ -73,11 +73,11 @@ output.elasticsearch.max_retries: 5
7373
#setup.ilm.check_exists: false
7474
#setup.ilm.overwrite: false
7575

76-
#=========================== Xpack Monitoring =================================
76+
#=== Xpack Monitoring ===
7777
# When monitoring is enabled, the beat will ship monitoring data to the cluster
7878
monitoring.enabled: true
7979

80-
#================================= Queue ======================================
80+
#=== Queue ===
8181
# See the 'Configure the internal queue' documentation for each Beat before
8282
# configuring the queue. Note that only one queue type can be configured.
8383
# You need to uncomment the specific queue type you decide to use.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Example for the Beats on CentOS blog
2+
# Configuration version: 11-27-2019
3+
#=== Auditbeat specific options ===
4+
#=== Modules configuration ===
5+
auditbeat.modules:
6+
7+
- module: file_integrity
8+
paths:
9+
- /bin
10+
- /usr/bin
11+
- /sbin
12+
- /usr/sbin
13+
- /etc
14+
15+
- module: system
16+
datasets:
17+
- user
18+
- login
19+
user.detect_password_changes: true
20+
period: 10s
21+
state.period: 12h
22+
23+
- module: system
24+
datasets:
25+
- package
26+
- host
27+
period: 30m
28+
state.period: 12h
29+
30+
- module: system
31+
datasets:
32+
- socket
33+
socket.include_localhost: false
34+
period: 3s
35+
36+
- module: system
37+
datasets:
38+
- process
39+
processors:
40+
- drop_event.when:
41+
or:
42+
- contains.event.action: "existing_process"
43+
- contains.event.action: "process_error"
44+
- add_process_metadata:
45+
match_pids: [process.ppid]
46+
target: process.parent
47+
period: 5s
48+
49+
#=== Beats Common Configs Here ===
50+
# Add the settings from the Beats General Config file (beats-general-config.yml)
51+
# to the end of this configuration file. The Beats General Config file example can be found at this link:
52+
# https://github.com/elastic/examples/blob/master/Security%20Analytics/SIEM-at-Home/beats-configs/beats-general-config.yml
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Example for the Beats on CentOS blog
2+
# Configuration version: 11-27-2019
3+
#=== Filebeat specific options ===
4+
#=== Filebeat modules ===
5+
filebeat.config.modules:
6+
path: ${path.config}/modules.d/*.yml
7+
reload.enabled: true
8+
reload.period: 30s
9+
10+
#=== Filebeat inputs ===
11+
filebeat.inputs:
12+
13+
- type: log
14+
enabled: true
15+
paths:
16+
- /var/log/yum.log
17+
18+
- type: log
19+
enabled: true
20+
paths:
21+
- /var/log/pihole.log
22+
fields:
23+
app: pihole
24+
name: pihole
25+
26+
- type: log
27+
enabled: true
28+
paths:
29+
- /var/log/pihole-FTL.log
30+
fields:
31+
app: pihole
32+
name: pihole-FTL
33+
34+
- type: log
35+
enabled: true
36+
paths:
37+
- /var/log/pihole_updateGravity.log
38+
fields:
39+
app: pihole
40+
name: pihole-updateGravity
41+
42+
- type: log
43+
enabled: true
44+
paths:
45+
- /var/log/lighttpd/*.log
46+
fields:
47+
app: pihole
48+
name: pihole-lighttpd
49+
50+
#=== Beats Common Configs Here ===
51+
# Add the settings from the Beats General Config file (beats-general-config.yml)
52+
# to the end of this configuration file. The Beats General Config file example can be found at this link:
53+
# https://github.com/elastic/examples/blob/master/Security%20Analytics/SIEM-at-Home/beats-configs/beats-general-config.yml
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Example for the Beats on CentOS blog
2+
# Configuration version: 11-27-2019
3+
#=== Packetbeat specific options ===
4+
#=== Network device ===
5+
# Select the network interface to sniff the data. On Linux, you can use the
6+
# "any" keyword to sniff on all connected interfaces.
7+
packetbeat.interfaces.device: any
8+
9+
#=== Flows ===
10+
packetbeat.flows:
11+
timeout: 30s
12+
period: 10s
13+
14+
#=== Transaction protocols ===
15+
# For more information on the transaction protocols, see
16+
# https://www.elastic.co/guide/en/beats/packetbeat/7.4/configuration-protocols.html
17+
packetbeat.protocols:
18+
- type: icmp
19+
# Enable ICMPv4 and ICMPv6 monitoring. Default: false
20+
enabled: true
21+
22+
- type: dhcpv4
23+
# Configure the DHCP for IPv4 ports.
24+
ports: [67, 68]
25+
send_request: true
26+
send_response: true
27+
28+
- type: dns
29+
# Configure the ports where to listen for DNS traffic. You can disable
30+
# the DNS protocol by commenting out the list of ports.
31+
ports: [53]
32+
include_authorities: true
33+
include_additionals: true
34+
send_request: true
35+
send_response: true
36+
37+
- type: http
38+
# Configure the ports where to listen for HTTP traffic. You can disable
39+
# the HTTP protocol by commenting out the list of ports.
40+
ports: [80, 8080, 8000, 5000, 8002]
41+
42+
- type: tls
43+
# Configure the ports where to listen for TLS traffic. You can disable
44+
# the TLS protocol by commenting out the list of ports.
45+
ports:
46+
- 443 # HTTPS
47+
- 993 # IMAPS
48+
- 995 # POP3S
49+
- 5223 # XMPP over SSL
50+
- 8443
51+
- 8883 # Secure MQTT
52+
- 9243 # Elasticsearch
53+
54+
#=== Beats Common Configs Here ===
55+
# Add the settings from the Beats General Config file (beats-general-config.yml)
56+
# to the end of this configuration file. The Beats General Config file example can be found at this link:
57+
# https://github.com/elastic/examples/blob/master/Security%20Analytics/SIEM-at-Home/beats-configs/beats-general-config.yml

Security Analytics/SIEM-at-Home/beats-configs/beats-on-windows/auditbeat.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ auditbeat.modules:
2828
target: system.process.parent
2929
period: 3m
3030

31+
#=== Auditbeat logging ===
32+
# Configure logging for Auditbeat if you plan on using the GeoIP ingest processor
33+
# Initially use `info` for the logging.level, set logging.level to `debug` if you see
34+
# an `Failed to publish events: temporary bulk send failure` error message in the logs
35+
#logging.level: info
36+
#logging.to_files: true
37+
#logging.files:
38+
# path: C:\Program Files\Elastic\logs\
39+
# name: auditbeat
40+
# keepfiles: 7
41+
# permissions: 0644
42+
3143
#=== Beats Common Configs Here ===
3244
# Add the settings from the Beats General Config file (beats-general-config.yml)
3345
# to the end of this configuration file. The Beats General Config file example can be found at this link:

Security Analytics/SIEM-at-Home/beats-configs/beats-on-windows/packetbeat.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ packetbeat.protocols:
5050
- 8883 # Secure MQTT
5151
- 9243 # Elasticsearch
5252

53+
#=== Packetbeat logging ===
54+
# Configure logging for Packetbeat if you plan on using the GeoIP ingest processor
55+
# Initially use `info` for the logging.level, set logging.level to `debug` if you see
56+
# an `Failed to publish events: temporary bulk send failure` error message in the logs
57+
#logging.level: info
58+
#logging.to_files: true
59+
#logging.files:
60+
# path: C:\Program Files\Elastic\logs\
61+
# name: packetbeat
62+
# keepfiles: 7
63+
# permissions: 0644
64+
5365
#=== Beats Common Configs Here ===
5466
# Add the settings from the Beats General Config file (beats-general-config.yml)
5567
# to the end of this configuration file. The Beats General Config file example can be found at this link:

Security Analytics/SIEM-at-Home/beats-configs/beats-on-windows/winlogbeat.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ winlogbeat.event_logs:
3333
id: sysmon
3434
file: ${path.home}/module/sysmon/config/winlogbeat-sysmon.js
3535

36+
#=== Winlogbeat logging ===
37+
# Configure logging for Winlogbeat if you plan on using the GeoIP ingest processor
38+
# Initially use `info` for the logging.level, set logging.level to `debug` if you see
39+
# an `Failed to publish events: temporary bulk send failure` error message in the logs
40+
#logging.level: info
41+
#logging.to_files: true
42+
#logging.files:
43+
# path: C:\Program Files\Elastic\logs\
44+
# name: winlogbeat
45+
# keepfiles: 7
46+
# permissions: 0644
47+
3648
#=== Beats Common Configs Here ===
3749
# Add the settings from the Beats General Config file (beats-general-config.yml)
3850
# to the end of this configuration file. The Beats General Config file example can be found at this link:

Security Analytics/SIEM-at-Home/beats-configs/winlogbeat/winlogbeat.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)