Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

microsoft/azure-cloudera-vm-metrics-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Azure Cloudera linux vm metrics logging with fluentd to azure storage

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published