Since there is currently no public release of heka 0.9 available for windows, the only way is to build it.

First of all, you need to install the compiler chain:

And some other stuff like utilities:

Pay attention to installer options, path must be set for all these binaries.

Getting heka

git clone https://github.com/mozilla-services/heka.git

Note: You can not use a source release from github releases, a .git directory must be included!

Building

Get inside the heka directory, open a Command prompt.

build.bat

If you’ve done anything right, there’s a [hekaroot]/build/heka/bin/hekad.exe now.

Running

To run hekad, it needs to find liblua.dll which is located at [hekaroot]/build/heka/lib. You can simply copy everything from lib/ to your bin/ directory to solve this problem.