Skip to content

elastic stack with preconfigured fleet server in docker compose

Notifications You must be signed in to change notification settings

michellevaillant/fleet-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

add logstash pipelines

todo

configure logging

todo: sysmon configuration

enable windows event log channels

  1. run batch script from https://github.com/Yamato-Security/EnableWindowsLogSettings
  2. run config/enable_channels.bat

setup winlogbeat

configure winlogbeat

todo: add ca verification
https://www.elastic.co/fr/downloads/beats/winlogbeat

  1. download winlogbeat
  2. copy config from config/winlogbeat.yml to target machine and edit output hosts
  3. start setup: winlogbeat.exe setup
  4. test winlogbeat configuration winlogbeat.exe -c winlogbeat.yml

install winlogbeat service

  1. run powershell script install-service-winlogbeat
  2. start service winlogbeat

or alternatively: setup fleet server

in https://kibana-url5601 -> fleet -> settings -> outputs:

  • Hosts -> https://es01:9200
  • Elasticsearch CA trusted fingerprint (optional):
    • pull the CA certificate from container docker cp fleet-compose-es01-1:/usr/share/elasticsearch/config/certs/ca/ca.crt /tmp/.
    • get fingerprint of ca openssl x509 -fingerprint -sha256 -noout -in /tmp/ca.crt | awk -F"=" {' print $2 '} | sed s/://g
    • insert fingerprint in text box.
  • advanced YAML configuration:
    • get ca.crt content with cat /tmp/ca.crt
    • insert in settings yaml:
ssl:
  certificate_authorities:
  - |
    -----BEGIN CERTIFICATE-----
    MIIDSjCCAjKgAwIBAgIVALBoRgizMYUxU7XUYVxGS2KV72ENMA0GCSqGSIb3DQEB
    CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu
    ZXJhdGVkIENBMB4XDTI0MTIxNTE3NTgyN1oXDTI3MTIxNTE3NTgyN1owNDEyMDAG
    A1UEAxMpRWxhc3RpYyBDZXJ0aWZpY2F0ZSBUb29sIEF1dG9nZW5lcmF0ZWQgQ0Ew
    ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDIlUza635AtJF4AFnWcA3/
    ePDUiTONGy7+JgZ2sUk5BpgPZmzObuxHRh2DfJ4NjA0AqJOHZvvyLnsWyBL/IJGf
    auMw0DkI8e8H9X6/gYGCrn5Jvi6r16Gca8NGOZ8pR9k0lOqwm7uJ2pmW5vlD813j
    6PxqRVd/NOo2m6yKAsTbfW3RK0izq3uK2FTSP4/Df4j6gsQYwRKFHhzU4cclW8zG
    PuyDV0LWgKMmoup1+VQRrnSio6cd7cm52rjTB3ZLn8cQ79qFru+sgxhVU4Guav6n
    +ItW/Y3UvZO1TF+WCM6kTCER2QURJhkwj7DqjycEjjaJzJTbkMmawjELg93BJmtN
    AgMBAAGjUzBRMB0GA1UdDgQWBBR3XnanQc3H+l2A6a4flKQhECGoBjAfBgNVHSME
    GDAWgBR3XnanQc3H+l2A6a4flKQhECGoBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqG
    SIb3DQEBCwUAA4IBAQBkw3LVI8K5aX/ZvVe17qiC/E1SAd5XLpmCyABW58pPb9Ih
    kPh7sEwv8NoieYobvGzyiuHF+i3plApq+i1qKcqZb2PJ49lu+udCAGdJ6Z/m0ZRw
    ejUPrQNs2yhZ+WOP3z/7bUByfpGlcZp5PjlG2PSIdh8+OMKbFXkn+C8rUVQo6QcE
    9mD+4Mw3uueGMlfWE/jNscGomA1TXL1fiqvFxR348SXFdt38MB1qZiJJi9hMKxPm
    LGYVRPUM8FWuW6SJfXEpPhbYpfVAfcQ6Fyw9niFZIM5hUiRXF/Dsiwi9Oz44uxvu
    9DxfOLPbFvlIQcRXvGEcWqQ0jvq02h0HTBSYKZxH
    -----END CERTIFICATE-----

enroll agent

  • create fleet server host for remote agents
  • create output for remote agents

todo: remove logstash part

About

elastic stack with preconfigured fleet server in docker compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published