Skip to content

Instantly share code, notes, and snippets.

@valmac
Forked from chilledornaments/TD-Agent-GELF.sh
Created February 20, 2021 12:53
Show Gist options
  • Select an option

  • Save valmac/ef07ac9921c6c005c1682b45f036bbeb to your computer and use it in GitHub Desktop.

Select an option

Save valmac/ef07ac9921c6c005c1682b45f036bbeb to your computer and use it in GitHub Desktop.

Revisions

  1. Mitch created this gist Mar 29, 2019.
    9 changes: 9 additions & 0 deletions TD-Agent-GELF.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/usr/bin/env bash
    # I've spent too much time banging my head against the wall trying to do this to not document it

    cd /etc/td-agent/plugin/ && sudo wget https://raw.githubusercontent.com/emsearcy/fluent-plugin-gelf/master/lib/fluent/plugin/out_gelf.rb
    sudo /usr/sbin/td-agent-gem install gelf

    echo "Installed td-agent GELF plugin"

    exit 0