Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Modular Scripts/File Monitoring/configure-file-monitoring.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is $CA_FILE_PATH defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Expand Down Expand Up @@ -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
Expand Down