From ad0c7ae8a70968871d15dd4ec9358cb0520c770d Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 21 Nov 2021 19:52:19 +0200 Subject: [PATCH] add fluentd --- WriteToMongo/fluent/install-fluent-root.sh | 13 +++++++++++++ WriteToMongo/fluent/install-fluent.sh | 9 +++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 WriteToMongo/fluent/install-fluent-root.sh diff --git a/WriteToMongo/fluent/install-fluent-root.sh b/WriteToMongo/fluent/install-fluent-root.sh new file mode 100755 index 0000000..babc1bb --- /dev/null +++ b/WriteToMongo/fluent/install-fluent-root.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +BASEDIR=$(dirname $0) +cpwd=$PWD + +echo $BASEDIR + +cd $BASEDIR + + +cp fluent.conf /fluentd/etc/ +/tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem + diff --git a/WriteToMongo/fluent/install-fluent.sh b/WriteToMongo/fluent/install-fluent.sh index e616d67..e890f8c 100755 --- a/WriteToMongo/fluent/install-fluent.sh +++ b/WriteToMongo/fluent/install-fluent.sh @@ -7,6 +7,11 @@ echo $BASEDIR cd $BASEDIR +gem install fluentd --no-doc +gem install fluent-plugin-mongo +gem install oj +gem install json +gem install async-http +gem install ext-monitor +gem sources --clear-all -cp fluent.conf /fluentd/etc/ -#cp entrypoint.sh /bin/