This file contains 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
# Set global options | |
data_dir = "/var/lib/vector" | |
[sources.from_file] | |
type = "file" | |
include = ["/var/log/nginx/*.log"] | |
[sinks.to_broker] | |
type = "kafka" | |
inputs = ["from_file"] |
This file contains 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: | |
cassandra: | |
image: cassandra:2.2.8 | |
container_name: cassandra | |
ports: | |
- "9042:9042" | |
kong: | |
image: kong |
This file contains 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: | |
# brocker | |
redis: | |
image: redis:3.2.6 | |
container_name: redis | |
ports: | |
- 6379:6379 | |
volumes: |
This file contains 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
# agregation par operateur pour un contrat donne | |
POST finance_v1_20141008/_search | |
{ | |
"size": 0, | |
"query": { | |
"filtered": { | |
"filter": { | |
"term": { | |
"contractId": "2" | |
} |
This file contains 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
# pour un contractId et un commercialOperator | |
POST finance/_search | |
{ | |
"size": 0, | |
"query": { | |
"filtered": { | |
"filter": { | |
"bool": { | |
"must": [ | |
{ |