Giter Club home page Giter Club logo

ansible-splunkuf-update's Introduction

ansible-splunkuf-update

Using Ansible playbook to automate Splunk UF config update.

To add new log source into Splunk UF:

  • Add a new line in syslog-sources.csv with [name of the source],[port number],[tcp or udp],[key name used for syslog files].

    Example: fooudp,46588,udp,foo

  • Add a new line in inputs.csv with [name of the input][index name][index data type].

    Example: foo,network_foo,cisco:ios

After updated the CSV files, run ansible-playbook update-config.yml.

The playbook update-config.yml does the following:

  • Import syslog-ng sources from syslog-sources.csv
  • Use Jinja2 template to generate syslog-ng config file.
  • Import Splunk Universal Forwarder inputs from inputs.csv
  • Use Jinja2 template to generate Splunk UF syslog app inputs config file.
  • Restart Splunk service

Remember to update SSH key path in ansible.cfg.

ansible-splunkuf-update's People

Contributors

tomkingchen avatar thesilentdon850 avatar

Watchers

James Cloos 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.