Coder Social home page Coder Social logo

domain_stats2_so's Introduction

domain_stats2_so

The setup script is to be used by those running Security Onion using the traditional Logstash pipeline (not LOGSTASH_MINIMAL). Everything will be configured without any manual modifications required.

run sudo bash setup.sh

However, if you are leveraging the minimal installation via sosetup-minimal, something else will have to communicate with domain_stats2. The steps below must be followed carefully.

Perform the following steps to have Bro/Zeek create a new domainstats.log using Bro/Zeek's ActiveHTTP

  • run the setup script as above
  • add ' -p 20000:8000' to DOCKER_OPTIONS in /etc/nsm/securityonion.conf
  • edit the syslog-ng config located at /etc/syslog-ng/syslog-ng.conf and add:
    • source s_bro_domainstats { file("/nsm/bro/logs/current/domainstats.log" flags(no-parse) program_override("bro_domainstats")); };
    • source(s_bro_domainstats); to the log stanza
  • copy bro_domainstats to /etc/elasticsearch/ingest/
  • add the new Bro/Zeek script:
    • sudo mkdir /opt/bro/share/bro/policy/domainstats
    • echo '@load ./domainstats' | sudo tee -a /opt/bro/share/bro/policy/domainstats/__load__.bro
    • sudo cp domainstats.bro /opt/bro/share/bro/policy/domainstats/
    • echo '@load domainstats' | sudo tee -a /opt/bro/share/bro/site/local.bro
  • copy logstash-template.json to /etc/logstash/custom/
  • sudo systemctl restart syslog-ng
  • sudo so-bro-restart
  • sudo so-elastic-restart
  • sudo so-elasticsearch-pipelines

I'll eventually add logic in the setup script to check for minimal installs (plus storage & forward nodes) and the above will be deprecated :crosses fingers:...

domain_stats2_so's People

Contributors

dlee35 avatar

Watchers

 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.