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

[LOG-8201] Linux file monitoring script update - use truststore #134

Merged
merged 2 commits into from May 15, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -9,7 +9,7 @@ source configure-linux.sh "being-invoked"
#name of the current script
SCRIPT_NAME=configure-file-monitoring.sh
#version of the current script
SCRIPT_VERSION=1.15
SCRIPT_VERSION=1.16

#file to monitor (contains complete path and file name) provided by user
LOGGLY_FILE_TO_MONITOR=
@@ -405,7 +405,7 @@ write21ConfFileContents() {
\$ActionSendStreamDriverPermittedPeer *.loggly.com
#RsyslogGnuTLS
\$DefaultNetstreamDriverCAFile /etc/rsyslog.d/keys/ca.d/logs-01.loggly.com_sha12.crt
\$DefaultNetstreamDriverCAFile $CA_FILE_PATH

This comment has been minimized.

@Katulus

Katulus May 4, 2020

Where is $CA_FILE_PATH defined?

This comment has been minimized.

@ondrejrozsypal

ondrejrozsypal May 5, 2020
Author Contributor

CA_FILE_PATH (as well as other methods and vars) is defined in configure-linux.sh script, which is dependency for configure-file-monitoring.sh.

# File access file:
\$InputFileName $FILE_TO_MONITOR
@@ -445,7 +445,7 @@ write21ConfFileContents() {
module(load=\"imfile\")
#RsyslogGnuTLS
\$DefaultNetstreamDriverCAFile /etc/rsyslog.d/keys/ca.d/logs-01.loggly.com_sha12.crt
\$DefaultNetstreamDriverCAFile $CA_FILE_PATH
# Input for FILE1
input(type=\"imfile\" tag=\"$LOGGLY_FILE_TO_MONITOR_ALIAS\" ruleset=\"filelog\" file=\"$FILE_TO_MONITOR\") #wildcard is allowed at file level only
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.