forked from TravisFSmith/SweetSecurity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading to latest (5.4.3) ELK stack. Adding new fields for files.log in latest Bro version for logstash parsing.
- Loading branch information
Travis Smith
committed
Jun 29, 2017
1 parent
703121a
commit 5c02694
Showing
6 changed files
with
43 additions
and
44 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
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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ def get_user_input(input_string): | |
|
||
def install(esServer,esUser,esPass): | ||
print "Installing Logstash" | ||
logstashLatest='5.3.0' | ||
logstashLatest='5.4.3' | ||
|
||
cpuArch=os.uname()[4] | ||
cwd=os.getcwd() | ||
|
@@ -54,16 +54,16 @@ def install(esServer,esUser,esPass): | |
smtpPort = get_user_input(" \033[1mEnter SMTP Port (ex: 587)\033[0m: ") | ||
smtpUser = get_user_input(" \033[1mEnter Email Address (ex: [email protected])\033[0m: ") | ||
smtpPass = getpass.getpass(" \033[1mEnter Email Password (ex: P@55word)\033[0m: ") | ||
print " Downloading Logstash 5.3.0" | ||
os.popen('sudo wget https://artifacts.elastic.co/downloads/logstash/logstash-5.3.0.deb 2>&1').read() | ||
if not os.path.isfile('logstash-5.3.0.deb'): | ||
print " Downloading Logstash 5.4.3" | ||
os.popen('sudo wget https://artifacts.elastic.co/downloads/logstash/logstash-5.4.3.deb 2>&1').read() | ||
if not os.path.isfile('logstash-5.4.3.deb'): | ||
sys.exit('Error downloading logstash') | ||
if not hashCheck.checkHash('logstash-5.3.0.deb'): | ||
if not hashCheck.checkHash('logstash-5.4.3.deb'): | ||
sys.exit('Error downloading logstash, mismatched file hashes') | ||
print " Installing Logstash" | ||
os.popen('sudo dpkg -i logstash-5.3.0.deb').read() | ||
os.popen('sudo dpkg -i logstash-5.4.3.deb').read() | ||
print " Cleaning Up Logstash Installation Files" | ||
os.remove('logstash-5.3.0.deb') | ||
os.remove('logstash-5.4.3.deb') | ||
os.popen('sudo systemctl enable logstash.service').read() | ||
|
||
if not cpuArch.startswith('x86'): | ||
|
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