Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 932 Bytes

INSTALL.md

File metadata and controls

30 lines (19 loc) · 932 Bytes

Installing from sources

Packetbeat is written in the Go programming language. Thus, you need to have a Go compiler installed before compiling Packetbeat.

Compiling Packetbeat

To install GeoIP:

$ pip install python-geoip
$ pip install python-geoip-geolite2

It requires the package to be checked out in the local source tree. To get the sources from github use:

$ go get github.com/packetbeat/packetbeat

To build Packetbeat successfully, first you need to install all the dependencies:

$ go get github.com/mattbaird/elastigo/api
$ go get github.com/mattbaird/elastigo/core
$ go get github.com/nranchev/go-libGeoIP
$ go get github.com/BurntSushi/toml
$ go get github.com/akrennmair/gopcap
$ go get github.com/tsg/fsnotify
$ go get labix.org/v2/mgo/bson

The go build command is used to compile the package. It only builds the package, without its installation.

$ go build