mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Logstash Module - Added Redis Docker
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
output {
|
||||
redis {
|
||||
host => 'redis'
|
||||
host => 'so-redis'
|
||||
data_type => 'list'
|
||||
key => 'logstash:redis'
|
||||
congestion_interval => 1
|
||||
|
||||
@@ -93,6 +93,7 @@ so-logstash:
|
||||
- environment:
|
||||
- LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }}
|
||||
- port_bindings:
|
||||
- {{ lsaccessip }}:514:514
|
||||
- {{ lsaccessip }}:5044:5044
|
||||
- {{ lsaccessip }}:6050:6050
|
||||
- {{ lsaccessip }}:6051:6051
|
||||
|
||||
1316
salt/redis/etc/redis.conf
Normal file
1316
salt/redis/etc/redis.conf
Normal file
File diff suppressed because it is too large
Load Diff
54
salt/redis/init.sls
Normal file
54
salt/redis/init.sls
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 2014,2015,2016,2017,2018 Security Onion Solutions, LLC
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# IDSTools Setup
|
||||
redisconfdir:
|
||||
file.directory:
|
||||
- name: /opt/so/conf/redis/etc
|
||||
- user: 939
|
||||
- group: 939
|
||||
- makedirs: True
|
||||
|
||||
redisworkdir:
|
||||
file.directory:
|
||||
- name: /opt/so/conf/redis/working
|
||||
- user: 939
|
||||
- group: 939
|
||||
- makedirs: True
|
||||
|
||||
redisconfsync:
|
||||
file.recurse:
|
||||
- name: /opt/so/conf/redis/etc
|
||||
- source: salt://redis/etc
|
||||
- user: 939
|
||||
- group: 939
|
||||
- template: jinja
|
||||
|
||||
redis:latest:
|
||||
docker_image.present
|
||||
|
||||
so-redis:
|
||||
docker_container.running:
|
||||
- image: redis:latest
|
||||
- hostname: so-redis
|
||||
- user: socore
|
||||
- port_bindings:
|
||||
- {{ lsaccessip }}:6379:6379
|
||||
- binds:
|
||||
- /opt/so/log/redis:/var/log/redis:rw
|
||||
- /opt/so/conf/redis/etc/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||
- /opt/so/conf/redis/working:/redis:rw
|
||||
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf"
|
||||
- network_mode: so-elastic-net
|
||||
@@ -15,6 +15,7 @@ base:
|
||||
- common
|
||||
- master
|
||||
- idstools
|
||||
- redis
|
||||
- elasticsearch
|
||||
- logstash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user