hartfordfive / protologbeat

Application accepting log data via TCP or UDP to then index the data in Elasticsearch
Other
27 stars 14 forks source link

Some questions #10

Open am1n3F opened 7 years ago

am1n3F commented 7 years ago

What's the beats version do we need to downloads if we want to compile? Can we compile the protologbeat to generate an android apk?

hartfordfive commented 7 years ago

@am1n3F The pre-built binaries are included with each release for Linux and OSX. If you want a different build, you can simply clone the project and the compile for which ever OS/Arch you need. For example, if you wanted to build version 0.2.0 for Windows, you could checkout the 0.2.0 tag and then compile:

GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X main.build_date=`date +%Y-%m-%d` -X main.version=0.2.0 -X main.commit_hash=`git rev-parse --verify HEAD`" -o protologbeat-0.2.0

Keep in mind the -s and -w flags are just there to keep the resulting binary smaller as they ommit some unecessary symbols from the binary, given that you don't need to debug it in any way. You can find a list of possible OS/Arch values by typing in:

go tool dist list

As for compiling this to be used on Android, i'm not totally sure to be honest. Probably best to check with the Android community on how to accomplish that and what the restrictions (if any) might be.