-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Cobrijani/Elusive
- Loading branch information
Showing
76 changed files
with
112 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.eol": "\n" | ||
"files.eol": "\n", | ||
"python.linting.pylintEnabled": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This folder contains all configurations for security aspects | ||
|
||
|
||
- instance.yml configuration for generating certificates for elasticsearch cluster | ||
|
||
- [Guide for generating certificates for elasticsearch cluster](https://www.elastic.co/guide/en/x-pack/current/ssl-tls.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,7 @@ instances: | |
- "localhost" | ||
- "es" | ||
ip: | ||
- "127.0.0.1" | ||
- "127.0.0.1" | ||
- "0.0.0.0" | ||
- "172.20.0.4" | ||
- "172.20.0.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Elk docker image [DEPRECATED] | ||
|
||
This image is not used anymore it is split into 3 seprate docker images | ||
|
||
This folder contains tweaked version of docker image located [here](https://hub.docker.com/r/sebp/elk/) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions
7
...oyment/logstash/pipeline/02-firewall.conf → ...PRECATED]/pipeline/02-firewall-input.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#This configuration file represents parsing stategy for apache web server logs | ||
filter { | ||
|
||
if ("apache-beat" in [beat][name]){ | ||
# change index for apachebeat | ||
|
||
|
||
grok { #match message to regular expression | ||
match => { "message" => "%{COMBINEDAPACHELOG}"} | ||
} | ||
geoip { | ||
source => "clientip" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
FROM phusion/baseimage | ||
MAINTAINER Stefan Bratic | ||
LABEL maintainer "Stefan Bratic <[email protected]>" | ||
|
||
ENV REFRESHED_AT 2017-05-23 | ||
|
||
|
||
############################################################################### | ||
# INSTALLATION | ||
############################################################################### | ||
|
||
ENV FILEBEAT_VERSION 5.4.0 | ||
ENV FILEBEAT_VERSION 5.4.1 | ||
ENV BEAT_NAME GENERIC_BEAT | ||
|
||
|
||
RUN apt-get update -qq \ | ||
&& apt-get install -qqy curl \ | ||
|
@@ -17,7 +20,6 @@ RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ | |
&& dpkg -i filebeat-${FILEBEAT_VERSION}-amd64.deb \ | ||
&& rm filebeat-${FILEBEAT_VERSION}-amd64.deb | ||
|
||
|
||
############################################################################### | ||
# CONFIGURATION | ||
############################################################################### | ||
|
@@ -36,7 +38,6 @@ ADD logstash-beats.crt /etc/pki/tls/certs/logstash-beats.crt | |
|
||
ADD wait.sh /wait.sh | ||
RUN chmod +x /wait.sh | ||
|
||
ADD start.sh /usr/local/bin/start.sh | ||
RUN chmod +x /usr/local/bin/start.sh | ||
CMD [ "/usr/local/bin/start.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
#!/bin/sh | ||
|
||
./wait.sh -t 30 -h elk -p 9200 #wait for elasticsearch | ||
./wait.sh -t 15 -h elk -p 5044 # wait for logstash | ||
./wait.sh -t 300 -h es -p 9200 #wait for elasticsearch | ||
|
||
|
||
#Add role that is configured for logstash indexer named logstash_writer | ||
curl -k \ | ||
--user elastic:changeme \ | ||
-X POST \ | ||
-H "Content-Type: application/json"\ | ||
-d "{ \"cluster\": [\"manage_index_templates\", \"monitor\"], \"indices\": [{ \"names\": [\"logstash-*\", \"filebeat-*\", \"winlogbeat-*\"], \"privileges\": [\"write\", \"delete\", \"create_index\"]}]}" \ | ||
https://es:9200/_xpack/security/role/logstash_writer | ||
|
||
# Add user with role logstash writer | ||
curl -k \ | ||
--user elastic:changeme \ | ||
-X POST \ | ||
-H "Content-Type: application/json"\ | ||
-d "{ \"password\" : \"changeme\",\"roles\" : [ \"logstash_writer\"],\"full_name\" : \"Internal Logstash User\"}"\ | ||
https://es:9200/_xpack/security/user/logstash_internal | ||
|
||
curl -k \ | ||
--user elastic:changeme \ | ||
-X PUT \ | ||
'https://elk:9200/_template/filebeat?pretty' \ | ||
'https://es:9200/_template/filebeat?pretty' \ | ||
-d@/etc/filebeat/filebeat.template.json | ||
service filebeat start | ||
./wait.sh -t 15 -h logstash -p 5044 # wait for logstash | ||
/etc/init.d/filebeat start -e | ||
|
||
mkdir /var/log/filebeat | ||
touch /var/log/filebeat/filebeat.log | ||
#tail -f /var/log/filebeat/filebeat.log | ||
tail -f /var/log/filebeat/filebeat.log & wait |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Oops, something went wrong.