GithubHelp home page GithubHelp logo

mindthecap / ansible-role-wecsvc Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 26 KB

Ansible role for deploying WEFC subscriptions.

License: GNU General Public License v3.0

Shell 15.26% HTML 84.74%
windows event-forwarding ansible-role wefc ansible wef windows-event-forwarding windows-event-collector security security-automation

ansible-role-wecsvc's Introduction

win_wecsvc

An ansible role for deploying WEF (Windows Event Forwarding) on scale and with central subscription and query management. It enhances Palantirs "Windows Event Forwarding" query repo (https://github.com/palantir/windows-event-forwarding).

Requirements

Palantir rules folder must exist in ./file/palantir/wef-subscriptions. By default git clone https://github.com/palantir/windows-event-forwarding files/palantir does the trick.

Before running the role, query file templating is done by using template.sh. Run it from the role folder (assuming you have cloned the repo to default location).

Role Variables

Variables are listed below, along with default values.

# This is for testing only
ansible_hostname: "127.0.0.1"
wecsvc_events_maxsize: 10737418240

# can't use variables right
wecsvc_service_started: false

template_dst: "/tmp"
# Because of reasons, templating fragment query id is like a ansible variable
query_count: "query_count"

These are subscription (wecutil) defaults

wecsvc_batching_items: 5
wecsvc_batching_latency: 300000
wecsvc_read_existing: false
wecsvc_heartbeat_interval: 900000

Where to copy templates (this folder is created, if missing)

template_dst: "C:\Subscriptions"

You can have multiple subscriptions (per host) and put different computers as source. Create required Subscriptions based on file names under ./files (.xml is ommitted here)

# This is example of subscriptions
wecsvc_subscription:
  - wecsv_subscription_name: "Example"
    subscriptions:
      - ADFS
      - Wireless
      - Firewall
    wecsvc_source_domain_computers:
      - "(A;;GA;;;NS)"
      - "(A;;GA;;;DC)"
      - "(A;;GA;;;DD)"
  - wecsv_subscription_name: "Smaller Example"
    subscriptions:
      - ADFS
    wecsvc_source_domain_computers:
      - "(A;;GA;;;DD)"

Dependencies

None.

Example Playbook

Create /etc/ansible/tasks/wefc.yml:

- hosts: win_servers
  roles:
     - win_wecsvc

For installation

ansible-playbook /etc/ansible/tasks/wefc.yml --tags wecsvc_install,all

License

GNU GPLv3

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.