No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Dockerfile 100%
Find a file
2021-10-19 20:04:40 +01:00
Dockerfile Initial Commit 2020-11-24 15:56:30 +00:00
LICENCE Initial Commit 2020-11-24 15:56:30 +00:00
README.md Project Archived 2021-10-19 20:04:40 +01:00

⚠️ Project Archived, it was super buggy in practice.

CI status Docker Pulls Docker Image Size (latest by date)

Open-Collector on Windows

Simple project to allow you to run the LogRhythm Open Collector on Windows via Docker Desktop, this is not a supported way of running Open Collector, but theres no logical reason it shouldn't work with a bit of love and attention.

Installation

Install Docker on Windows using the Standard Docker Desktop installer, be sure to use Hyper-V mode instead of WSL2 if asked, next simply run this project with:

docker run -it --rm -v //var/run/docker.sock:/var/run/docker.sock binkhq/opencollector-on-windows {args}

Examples:

$ docker run -it --rm -v //var/run/docker.sock:/var/run/docker.sock binkhq/opencollector-on-windows metrics start
$ docker run -it --rm -v //var/run/docker.sock:/var/run/docker.sock binkhq/opencollector-on-windows open-collector start

Docker will start a centos container (required for Open Collector install script) that maps back to the Docker Desktop Hyper-V Virtual Machine running 'real' Docker via the Docker Socket mounted in /var/run/docker.sock.

NOTE: When connecting back to a service running on the 'host' such as LogRhythm System Monitor you'll need to specify the network interface address of the Host and not use loopback, as in the Docker context this is the Hyper-V VM, not your 'real' localhost. Exmaple:

PS C:\> ipconfig

Windows IP Configuration


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : uxivznvq0eyezhzndfqyxhv0ve.zx.internal.cloudapp.net
   IPv4 Address. . . . . . . . . . . : 192.168.0.4 <-- This one
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.0.1
PS C:\Users\laadmin>

Other Notes

You can create a powershell alias to save typing the docker command every time. Run notepad $profile in a powershell window and save this in there

Function OCFunc {docker run -it --rm -v //var/run/docker.sock:/var/run/docker.sock binkhq/opencollector-on-windows $args}
New-Alias -Name oc -Value OCFunc

Then you can run commands like:

oc eventhubbeat status

Pull requests welcome, no support provided by Bink and no promises anything works. #ItWorksOnMyMachine