Created
May 7, 2014 20:30
-
-
Save lbogdan/33f288ba8932a35767ff to your computer and use it in GitHub Desktop.
logstash-forwarder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@player:~# cd /usr/src | |
| root@player:/usr/src# apt-get install -y golang | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| The following extra packages will be installed: | |
| golang-doc golang-go golang-go-linux-amd64 golang-src | |
| Suggested packages: | |
| golang-go.tools | |
| The following NEW packages will be installed: | |
| golang golang-doc golang-go golang-go-linux-amd64 golang-src | |
| 0 upgraded, 5 newly installed, 0 to remove and 20 not upgraded. | |
| Need to get 27.3 MB of archives. | |
| After this operation, 175 MB of additional disk space will be used. | |
| Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe golang-src amd64 2:1.2.1-2ubuntu1 [4,727 kB] | |
| Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/universe golang-go-linux-amd64 amd64 2:1.2.1-2ubuntu1 [12.5 MB] | |
| Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/universe golang-go amd64 2:1.2.1-2ubuntu1 [8,104 kB] | |
| Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty/universe golang-doc all 2:1.2.1-2ubuntu1 [1,932 kB] | |
| Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty/universe golang all 2:1.2.1-2ubuntu1 [16.8 kB] | |
| Fetched 27.3 MB in 1min 42s (266 kB/s) | |
| Selecting previously unselected package golang-src. | |
| (Reading database ... 68394 files and directories currently installed.) | |
| Preparing to unpack .../golang-src_2%3a1.2.1-2ubuntu1_amd64.deb ... | |
| Unpacking golang-src (2:1.2.1-2ubuntu1) ... | |
| Selecting previously unselected package golang-go-linux-amd64. | |
| Preparing to unpack .../golang-go-linux-amd64_2%3a1.2.1-2ubuntu1_amd64.deb ... | |
| Unpacking golang-go-linux-amd64 (2:1.2.1-2ubuntu1) ... | |
| Selecting previously unselected package golang-go. | |
| Preparing to unpack .../golang-go_2%3a1.2.1-2ubuntu1_amd64.deb ... | |
| Unpacking golang-go (2:1.2.1-2ubuntu1) ... | |
| Selecting previously unselected package golang-doc. | |
| Preparing to unpack .../golang-doc_2%3a1.2.1-2ubuntu1_all.deb ... | |
| Unpacking golang-doc (2:1.2.1-2ubuntu1) ... | |
| Selecting previously unselected package golang. | |
| Preparing to unpack .../golang_2%3a1.2.1-2ubuntu1_all.deb ... | |
| Unpacking golang (2:1.2.1-2ubuntu1) ... | |
| Processing triggers for man-db (2.6.7.1-1) ... | |
| Setting up golang-src (2:1.2.1-2ubuntu1) ... | |
| Setting up golang-go-linux-amd64 (2:1.2.1-2ubuntu1) ... | |
| Setting up golang-go (2:1.2.1-2ubuntu1) ... | |
| update-alternatives: using /usr/bin/golang-go to provide /usr/bin/go (go) in auto mode | |
| Setting up golang-doc (2:1.2.1-2ubuntu1) ... | |
| Setting up golang (2:1.2.1-2ubuntu1) ... | |
| root@player:/usr/src# git clone https://github.com/elasticsearch/logstash-forwarder.git | |
| Cloning into 'logstash-forwarder'... | |
| remote: Reusing existing pack: 2037, done. | |
| remote: Total 2037 (delta 0), reused 0 (delta 0) | |
| Receiving objects: 100% (2037/2037), 457.22 KiB | 157.00 KiB/s, done. | |
| Resolving deltas: 100% (963/963), done. | |
| Checking connectivity... done. | |
| root@player:/usr/src# cd logstash-forwarder | |
| root@player:/usr/src/logstash-forwarder# make | |
| Makefile:28: warning: overriding commands for target `clean' | |
| Makefile.ext:15: warning: ignoring old commands for target `clean' | |
| mkdir build | |
| mkdir build/bin | |
| PKG_CONFIG_PATH=$PWD/build/lib/pkgconfig \ | |
| go build -ldflags '-r $ORIGIN/../lib' -v -o build/bin/logstash-forwarder | |
| _/usr/src/logstash-forwarder | |
| install -m 755 logstash-forwarder.sh build/bin/logstash-forwarder.sh | |
| root@player:/usr/src/logstash-forwarder# ls -al build/bin/logstash-forwarder | |
| -rwxr-xr-x 1 root root 7237736 May 7 20:29 build/bin/logstash-forwarder | |
| root@player:/usr/src/logstash-forwarder# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment