Skip to content
Permalink
Browse files

Merge pull request #1450 from mozilla/move_demo_events

Update example demo events
  • Loading branch information...
pwnbus committed Sep 6, 2019
2 parents d098cef + c4a8c58 commit 0447418548a69b47e97e4eed26707d92921b86d3
Showing with 88 additions and 2,733 deletions.
  1. +0 −79 benchmarking/es/insert_bulk.js
  2. +0 −72 benchmarking/es/insert_simple.js
  3. +0 −66 benchmarking/es/search_all_fulltext.js
  4. +0 −114 benchmarking/workers/json2Mozdef.py
  5. +2 −2 docker/compose/dev-sampledata.yml
  6. +2 −7 docker/compose/mozdef_sampledata/Dockerfile
  7. +0 −4 docker/compose/mozdef_sampledata/files/sampleData2MozDef.conf
  8. +1 −1 docker/compose/tester/Dockerfile
  9. +0 −59 docs/source/benchmarking.rst
  10. +0 −1 docs/source/index.rst
  11. +5 −6 docs/source/installation.rst
  12. +0 −4 examples/demo/sampleData2MozDef.conf
  13. +0 −344 examples/demo/sampleData2MozDef.py
  14. +0 −6 examples/demo/sampleevents.sh
  15. +0 −287 examples/es-docs/alerts-kibana.json
  16. +0 −53 examples/es-docs/alerts_template.json
  17. +0 −170 examples/es-docs/bro_intel.json
  18. +0 −17 examples/es-docs/bro_notice.json
  19. +0 −107 examples/es-docs/bruteforce_ssh.json
  20. +0 −48 examples/es-docs/complianceitems_template.json
  21. +0 −153 examples/es-docs/events-auditd.json
  22. +0 −75 examples/es-docs/events-cloudtrail.json
  23. +0 −322 examples/es-docs/events-event.json
  24. +0 −287 examples/es-docs/events-kibana.json
  25. +0 −219 examples/es-docs/events_template.json
  26. +0 −37 examples/es-docs/fail2ban.json
  27. +0 −75 examples/es-docs/simpleDefaultTemplate.py
  28. +0 −118 examples/es-docs/vulnsnitch_template.json
  29. +69 −0 scripts/demo/populate_sample_events.py
  30. +9 −0 scripts/demo/populate_sample_events.sh
  31. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/alertcreating-bro-intel.json
  32. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/alertcreating-bro-notice.json
  33. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/alertcreating-bruteforce-ssh.json
  34. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/alertcreating-fail2ban.json
  35. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/events-auditd.json
  36. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/events-benign.json
  37. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/events-cloudtrail.json
  38. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/events-logins-failure.json
  39. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/events-logins-success.json
  40. 0 {examples/demo/sampleevents → scripts/demo/sample_events}/events-network.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -6,7 +6,7 @@ services:
context: ../../
dockerfile: docker/compose/mozdef_sampledata/Dockerfile
restart: always
command: bash -c 'while ! timeout 1 bash -c "echo > /dev/tcp/elasticsearch/9200";do sleep 1;done && /opt/mozdef/envs/mozdef/examples/demo/sampleevents.sh'
command: bash -c 'while ! timeout 1 bash -c "echo > /dev/tcp/elasticsearch/9200";do sleep 1;done && /opt/mozdef/envs/mozdef/scripts/demo/populate_sample_events.sh'
links:
- elasticsearch
depends_on:
@@ -17,4 +17,4 @@ services:
networks:
- default
volumes:
- ../../examples:/opt/mozdef/envs/mozdef/examples
- ../../scripts/demo:/opt/mozdef/envs/mozdef/scripts/demo
@@ -2,11 +2,6 @@ FROM mozdef/mozdef_base

LABEL maintainer="mozdef@mozilla.com"

COPY --chown=mozdef:mozdef ./examples /opt/mozdef/envs/mozdef/examples
COPY --chown=mozdef:mozdef scripts/demo /opt/mozdef/envs/mozdef/scripts/demo

COPY --chown=mozdef:mozdef docker/compose/mozdef_sampledata/files/sampleData2MozDef.conf /opt/mozdef/envs/mozdef/examples/demo/sampleData2MozDef.conf
RUN chmod u+rwx /opt/mozdef/envs/mozdef/examples/demo/sampleevents.sh

WORKDIR /opt/mozdef/envs/mozdef/examples/demo

USER root
WORKDIR /opt/mozdef/envs/mozdef/scripts/demo

This file was deleted.

@@ -6,7 +6,7 @@ RUN pip install -r /opt/mozdef/envs/mozdef/tests/requirements_tests.txt
COPY alerts /opt/mozdef/envs/mozdef/alerts
COPY bot /opt/mozdef/envs/mozdef/bot
COPY cron /opt/mozdef/envs/mozdef/cron
COPY examples /opt/mozdef/envs/mozdef/examples
COPY scripts /opt/mozdef/envs/mozdef/scripts
COPY loginput /opt/mozdef/envs/mozdef/loginput
COPY mozdef_util /opt/mozdef/envs/mozdef/mozdef_util
COPY mq /opt/mozdef/envs/mozdef/mq

0 comments on commit 0447418

Please sign in to comment.
You can’t perform that action at this time.