Skip to content

Commit 7981046

Browse files
authored
Update Forwarder_AMA_installer.py
Bug fix syslog-ng configuration file location
1 parent 55e38c1 commit 7981046

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DataConnectors/Syslog/Forwarder_AMA_installer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
rsyslog_old_config_tcp_content = "# provides TCP syslog reception\n$ModLoad imtcp\n$InputTCPServerRun " + daemon_default_incoming_port + "\n"
2424
syslog_ng_documantation_path = "https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.26/administration-guide/34#TOPIC-1431029"
2525
rsyslog_documantation_path = "https://www.rsyslog.com/doc/master/configuration/actions.html"
26-
temp_file_path = "/tmp/rsyslog_temp_config.txt"
26+
temp_file_path = "/tmp/syslog_temp_config.txt"
2727

2828

2929
def print_error(input_str):
@@ -266,7 +266,7 @@ def set_syslog_ng_configuration():
266266
comment_line = False
267267
# write line correctly
268268
fout.write(line if not comment_line else ("#" + line))
269-
command_tokens = ["sudo", "cp", temp_file_path, rsyslog_conf_path]
269+
command_tokens = ["sudo", "cp", temp_file_path, syslog_ng_conf_path]
270270
write_new_content = subprocess.Popen(command_tokens, stdout=subprocess.PIPE)
271271
time.sleep(3)
272272
o, e = write_new_content.communicate()
@@ -325,4 +325,4 @@ def main():
325325

326326

327327

328-
main()
328+
main()

0 commit comments

Comments
 (0)