Giter Club home page Giter Club logo

azure-cloudera-vm-metrics-logging's Introduction

Running and Install the Clouder and VM metrics fluentd agent

  1. Update the fluentd configurations under the FluentD folder
  2. Download the in_clouderametrics.rb from https://github.com/wesyao/fluent-plugin-clouderametrics.
  3. Run the packaging script to have a simple tar.gz file of all of the configuration files. Note: scripts/td-agent-config is a temporary folder
./package-tar-file.sh
  1. Upload these files to the VMs that need to be configured
  2. There is a README inside the tar file with some example steps on how to execute one of the two options to install the configuration on the VM.

Installing TD-Agent on CentOS RHEL 7.4

  1. Install the TD Fluentd agent
curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent3.sh | sh
  1. Install plugins
td-agent-gem install fluent-plugin-azurestorage
  1. (Optional) Install Ruby for native plugins
sudo yum install ruby
sudo yum install gcc-c++
sudo td-agent-gem install fluent-plugin-clouderametrics
sudo td-agent-gem install fluent-plugin-azurestorage
  1. Basic commands
/etc/init.d/td-agent start
/etc/init.d/td-agent restart
/etc/init.d/td-agent stop
  1. Test
curl -X POST -d 'json={"json":"message"}' http://localhost:8888/debug.test
  1. View Logs
tail -f /var/log/td-agent/td-agent.log
  1. Edit Config
vi /etc/td-agent/td-agent.conf

Run Ansible playbook to configure td-agent

  1. Install Ansible (MacOS X)
pip install ansible
  1. Ping test
ansible all -m ping -u <username> -i hosts --ask-pass
  1. Run Ansible playbook
ansible-playbook playbook.setup.yml -i ansible_inventory --ask-pass --ask-pass --ask-become-pass

Splunk

  1. Install Splunk
  2. Setup Splunk paths and config
export SPLUNK_HOME=/Applications/Splunk
export PATH=$SPLUNK_HOME/bin:$PATH
  1. Run the Splunk Little Helper application to start Splunk. You will need to update /Applications/Splunk/etc/splunk-launch.conf on MacOS X.
OPTIMISTIC_ABOUT_FILE_LOCKING = 1

Splunk Commands

  1. Remove all of the data
splunk clean eventdata

azure-cloudera-vm-metrics-logging's People

Contributors

aluong avatar ivan-shaporov avatar microsoftopensource avatar msftgits avatar zmmille2 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.