Creating an analysis plugin consists of three steps:
-
Writing a message matcher
The message matcher allows one to select specific data from the data stream.
-
Writing the analysis code/business logic
#!/bin/bash | |
export s3_bucket="$1" | |
export concurrent_jobs="$2" | |
export use_compression="$3" | |
export s3_buffer_dirs="${@:4}" | |
export STORAGE_CLASS="STANDARD" | |
function upload_file () { | |
cmd="$1" | |
set -x |