Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the changes between the two forks. #81

Merged
merged 28 commits into from Jul 13, 2016
Merged
Changes from 7 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
882b339
checking connectivity using telnet
varshneyjayant May 13, 2015
8eb4f1a
Added check for xcode command line tools
varshneyjayant May 15, 2015
b7c061f
fluent.conf now created in .loggly
varshneyjayant May 19, 2015
f8d885f
Added support to Tomcat 8 (package version)
Jul 9, 2015
8cca0cf
Added new syntax support
varshneyjayant Jan 11, 2016
3e40991
Added support for Access logs
varshneyjayant Jan 22, 2016
b87e366
Added support for Access logs
varshneyjayant Jan 22, 2016
13f4681
Merge pull request #3 from psquickitjayant/script-dev-2
varshneyjayant Jan 27, 2016
6961b2e
Added Mac script README link
varshneyjayant Jan 27, 2016
7c8a520
Create update-loggly-certificate.sh
varshneyjayant Feb 26, 2016
94c641b
Default Test Mode and Bug Fixes
varshneyjayant Feb 29, 2016
9620d00
Updated Certificate Path
varshneyjayant Mar 1, 2016
e03a420
Updated Certificate Path
varshneyjayant Mar 2, 2016
e4be7a7
Added Trapping Control + C
varshneyjayant Mar 3, 2016
b3ae0af
Added Sleep after updating Hosts file
varshneyjayant Mar 4, 2016
15dc9f7
Added MaxMessageSize
varshneyjayant Mar 9, 2016
69b90da
Configure Tomcat Access Logs
varshneyjayant Mar 9, 2016
97afefe
Added support for Systemd
varshneyjayant Mar 14, 2016
1c5ff65
Added support for Systemd
varshneyjayant Mar 14, 2016
09c09c3
Added support for Rsyslog Systemd service
varshneyjayant Mar 23, 2016
2f8d252
Added support for Systemd
varshneyjayant Mar 31, 2016
ee9768e
Delete configure-linux-systemd.sh
varshneyjayant Mar 31, 2016
a3200f0
Updated Script Version
varshneyjayant Mar 31, 2016
b78ff00
Changed Fluentd's install directory
varshneyjayant Apr 6, 2016
bae0b60
Fixed Base64 decode issue
varshneyjayant Apr 6, 2016
40f1b4e
Added support for amazon ami
varshneyjayant Apr 21, 2016
147ba9c
Merge pull request #6 from psquickitjayant/amazon-ami-support
varshneyjayant Apr 21, 2016
ad360ea
Merge pull request #5 from psquickitjayant/rsyslog-systemd
varshneyjayant May 4, 2016
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -15,7 +15,7 @@ function ctrl_c() {
#name of the current script. This will get overwritten by the child script which calls this
SCRIPT_NAME=configure-linux.sh
#version of the current script. This will get overwritten by the child script which calls this
SCRIPT_VERSION=1.15
SCRIPT_VERSION=1.16

#application tag. This will get overwritten by the child script which calls this
APP_TAG=
@@ -119,6 +119,9 @@ checkLinuxLogglyCompatibility()
#checking if syslog-ng is configured as a service
checkifSyslogNgConfiguredAsService

#check if systemd is present in machine.
checkIfSystemdConfigured

#check if rsyslog is configured as service. If no, then exit
checkIfRsyslogConfiguredAsService

@@ -179,6 +182,9 @@ removeLogglyConf()
#set the basic variables needed by this script
setLinuxVariables

#remove systemd-rsyslog configuration
revertSystemdChanges

#remove 22-loggly.conf file
remove22LogglyConfFile

@@ -368,6 +374,8 @@ checkIfRsyslogConfiguredAsService()
{
if [ -f /etc/init.d/$RSYSLOG_SERVICE ]; then
logMsgToConfigSysLog "INFO" "INFO: $RSYSLOG_SERVICE is present as service."
elif [ -f /usr/lib/systemd/system/$RSYSLOG_SERVICE.service ]; then
logMsgToConfigSysLog "INFO" "INFO: $RSYSLOG_SERVICE is present as service."
else
logMsgToConfigSysLog "ERROR" "ERROR: $RSYSLOG_SERVICE is not present as service."
exit 1
@@ -390,6 +398,19 @@ checkifSyslogNgConfiguredAsService()
fi
}

#check if systemd is present in machine.
checkIfSystemdConfigured()
{
FILE="/etc/systemd/journald.conf";
if [ -f "$FILE" ]; then
logMsgToConfigSysLog "INFO" "INFO: Systemd is present. Configuring logs from Systemd to rsyslog."
cp /etc/systemd/journald.conf /etc/systemd/journald.conf.loggly.bk
sed -i 's/.*ForwardToSyslog.*/ForwardToSyslog=Yes/g' /etc/systemd/journald.conf
logMsgToConfigSysLog "INFO" "INFO: Restarting Systemd-journald"
systemctl restart systemd-journald
fi
}

#check if multiple versions of rsyslog is configured
checkIfMultipleRsyslogConfigured()
{
@@ -595,6 +616,17 @@ remove22LogglyConfFile()
fi
}

revertSystemdChanges()
{
FILE="/etc/systemd/journald.conf.loggly.bk";
if [ -f "$FILE" ]; then
cp /etc/systemd/journald.conf.loggly.bk /etc/systemd/journald.conf
rm /etc/systemd/journald.conf.loggly.bk
logMsgToConfigSysLog "INFO" "INFO: Reverted Systemd-rsyslog configuration"
systemctl restart systemd-journald
fi
}

#compares two version numbers, used for comparing versions of various softwares
compareVersions ()
{
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.