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
rules: | |
- paths: ['.*'] | |
conditions: | |
- ssl: # Note: nested under "conditions", which is in the same object as "paths" and "action". | |
require: true | |
action: allow |
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
import json, requests | |
source_cluster = 'https://abc1234-us-east-1.foundcluster.com:9243' | |
destination_cluster = 'http://c0ffee-us-east-1.foundcluster.com:9200' | |
source_session = requests.session() | |
source_session.auth = ('user', 'pass') | |
destination_session = requests.session() | |
destination_session.auth = ('user', 'pass') |
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
# Switch to the Analysis-tab to see how these samples get analyzed. | |
text: | |
- My_second_file_created_at_2012.01.13.pdf | |
- Another file.txt | |
analyzer: | |
filename_index: | |
type: custom | |
tokenizer: filename |
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
# Switch to the Analysis-tab to see how these samples get analyzed. | |
text: | |
- My_second_file_created_at_2012.01.13.pdf | |
- Another file.txt | |
analyzer: | |
filename_index: | |
type: custom | |
tokenizer: filename |
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
text: This text will be used if nothing else is specified. | |
analyzer: | |
standard_tokenize_only: | |
type: custom | |
tokenizer: standard | |
# Switch to the "Analysis"-tab to see how the text gets tokenized by default. | |
standard: | |
type: standard |
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
# Here you could have various analyzers for different string-types. | |
# "text_value" and "name_value" should probably have different ones. |
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
analyzer: | |
sample: | |
text: | |
- Jon Snow | |
- Big Ben | |
tokenizer: standard | |
type: custom | |
filter: | |
- lowercase | |
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
_id: 1 | |
foo: null | |
bar: null | |
--- | |
_id: 2 | |
foo: '' | |
bar: '' | |
--- | |
_id: 3 | |
foo: bar |
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
text: | |
- Michael | |
- Heaney | |
- Heavey | |
analyzer: | |
metaphone: | |
type: custom | |
tokenizer: standard |
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
# Sample data points. | |
# These could e.g. be metrics reported by collectd to logstash. | |
host: app1 | |
cpu: 87.0 | |
--- | |
host: app1 | |
cpu: 1.23 | |
--- | |
host: app2 |
OlderNewer