From 37cb71022ef620f956110d8640a2b156607a1b65 Mon Sep 17 00:00:00 2001 From: Arun-Krishna <17722870+Arun-Krishna@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:41:01 +0530 Subject: [PATCH] Update fluentd conf to push all logs under "oozie" tag --- oozie/oozie.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/oozie/oozie.sh b/oozie/oozie.sh index 60c29de31..482675c0d 100755 --- a/oozie/oozie.sh +++ b/oozie/oozie.sh @@ -676,9 +676,7 @@ function install_fluentd_configuration() { enable_ruby true auto_typecast true - # "tag" is transtlated into log in Stackdriver - # Strip the instance name and .log from the filename if present - tag \${tag_suffix[-2].sub("-#{Socket.gethostname}", "").sub(/\.log\$/, "")} + tag ${tag_parts[-3]} # The following can be used when turning on jobid re-logging: # dataproc.googleapis.com/process_id \${job}