Skip to content

Instantly share code, notes, and snippets.

@prestonmcgowan
Last active January 19, 2021 14:58
Show Gist options
  • Save prestonmcgowan/d90f7af80428377aeb13c91110c2aba2 to your computer and use it in GitHub Desktop.
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.
#!/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