Coder Social home page Coder Social logo

tpot2csv's Introduction

tpot2csv

This docker creates CSV feed from the T-POT collected data in the ElasticSearch database.

Docker is based on official apache2.4 alpine docker image with python install and cron job configured. tpot2csv.py connects to elasticsearch service (being on the same network as t-pot containers), retrieves data based on saved query (query.json file), saves timestamp and source IP columns into CSV file. query.json is adjusted in a way query aggregates data for each unique IP with the latest timestamp seen. Content for the query.json can be taken from Kibana interface Inspect screen.

Usage:

Use .env.dist to create actual .env file (adjust virtual host name and email address for Apache configuration) and run install.sh to build and launch container.

cp .env.dist .env
vi .env
./install.sh
systemctl start tpot2csv

Notes:

  • t-pot's nginx SSL certificate is being used from files /data/nginx/cert/nginx.{crt,key}. Restart container if you replacing certificate.
docker restart tpot2csv
  • apache service logs goes to /data/tpot2csv/log

tpot2csv's People

Contributors

mariusurkis avatar

Stargazers

Cemal Tiryaki avatar

Watchers

Kostas Georgiou avatar

tpot2csv's Issues

etc_default in default docker installation doesn't exists

default docker service doesn't has etc_default network

suggestion- before docker-compose in install.sh file to add something like:
tmp_kint=docker network ls | grep etc_default | wc -l
if [ $tmp_kint -eq 0 ]; then
docker network create etc_default
fi

cis benchmark

acording to docker cis benchmark
rootfs should be mounted as read only
healthcheck should be used

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.