Last active
January 19, 2021 14:58
-
-
Save prestonmcgowan/d90f7af80428377aeb13c91110c2aba2 to your computer and use it in GitHub Desktop.
Loop through all the files in a directory, and make use of the send-syslog-data.sh to send the syslog data to Confluent Connect.
This file contains hidden or 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
#!/bin/bash | |
## The ./send-syslog-data.sh command below runs as a background task to maximize the cores and ram. | |
## This script may make the system usable. Change the "&" to a ";" if you want to run it one file at | |
## a time. | |
for x in `find ./$1 -type f`; do ./send-syslog-data.sh $x & done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment