pip install -r requirements.txt
python chunker.py
| input { | |
| stdin { } | |
| beats { | |
| port => 5044 | |
| type => nginx | |
| } | |
| } | |
| filter { |
| input { | |
| tcp { | |
| port => 5000 | |
| } | |
| http { | |
| port => 8201 | |
| type => webhooks | |
| } | |
| beats { | |
| port => 5044 |
| input { | |
| stdin { } | |
| } | |
| output { | |
| elasticsearch { | |
| hosts => "elasticsearch:9200" | |
| } | |
| hipchat { |
| # this goes on the server with the logs | |
| filebeat: | |
| prospectors: | |
| - | |
| paths: | |
| - "/var/log/nginx/*" | |
| document_type: nginx-logs | |
| registry_file: "/var/log/beat.log" | |
| output: | |
| logstash: |
| curl -X POST -u username:password \ | |
| -d "foo=bar&baz=bus&etc=etc" \ | |
| http://jenkinsserver:8080/job/JobName/buildWithParameters | |
| ## replace JobName with the name of your job |
| version: "2" | |
| services: | |
| cache: | |
| image: redis | |
| registry: | |
| image: registry | |
| ports: | |
| - '5000:5000' |
| version: "2" | |
| services: | |
| postgres: | |
| image: postgres:9.4 | |
| container_name: kong-database | |
| ports: | |
| - "5432:5432" | |
| environment: | |
| - POSTGRES_USER=kong |
Because learning all the things: new framework (Vue), new Architecture (Flux), new JavaScript (ES6), new build tools (Browserify, WebPack) all in one can be a little daunting ...
I've kept the below example as simple and bare-bones as possible. One html file with everything you need.
You can simply open index.html in your favorite browser to see it in action.
Or, if you want to run it with a server:
| # install gcoud SDK https://cloud.google.com/sdk/downloads | |
| gcloud auth activate-service-account --key-file=/path/to/project/application-key.json | |
| gcloud auth print-access-token |