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
| version: "2" | |
| services: | |
| postgres: | |
| image: postgres:9.4 | |
| container_name: kong-database | |
| ports: | |
| - "5432:5432" | |
| environment: | |
| - POSTGRES_USER=kong |
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
| version: "2" | |
| services: | |
| cache: | |
| image: redis | |
| registry: | |
| image: registry | |
| ports: | |
| - '5000:5000' |
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
| 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 |
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
| # 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: |
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
| input { | |
| stdin { } | |
| } | |
| output { | |
| elasticsearch { | |
| hosts => "elasticsearch:9200" | |
| } | |
| hipchat { |
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
| input { | |
| tcp { | |
| port => 5000 | |
| } | |
| http { | |
| port => 8201 | |
| type => webhooks | |
| } | |
| beats { | |
| port => 5044 |
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
| input { | |
| stdin { } | |
| beats { | |
| port => 5044 | |
| type => nginx | |
| } | |
| } | |
| filter { |
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
| input { | |
| stdin { } | |
| } | |
| filter { | |
| grok { | |
| match => { "message" => "%{DATE:date}[- ]%{TIME:time} - %{WORD:status}: %{GREEDYDATA:state}"} | |
| } |
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
| input{ stdin { } } | |
| output { stdout { codec => rubydebug } } |
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
| --- | |
| - hosts: localhost | |
| tasks: | |
| - name: Update apt | |
| apt: | |
| update_cache: yes | |
| become: yes | |
| become_user: root | |
| become_method: sudo |