-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathsolrgcp.conf
29 lines (25 loc) · 993 Bytes
/
solrgcp.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
input {
google_pubsub {
# Your GCP project id (name)
project_id => "<PROJECT_ID>"
# The topic name below is currently hard-coded in the plugin. You
# must first create this topic by hand and ensure you are exporting
# logging to this pubsub topic.
topic => "<TOPIC_NAME>"
# The subscription name is customizable. The plugin will attempt to
# create the subscription (but use the hard-coded topic name above).
subscription => "<SUB_NAME>"
# If you are running logstash within GCE, it will use
# Application Default Credentials and use GCE's metadata
# service to fetch tokens. However, if you are running logstash
# outside of GCE, you will need to specify the service account's
# JSON key file below.
json_key_file => "${THIRD_PARTY_PATH}/<KEY_FILE_NAME>.json"
type => "solr_gcp"
}
}
filter {
if [type] == "solr_gcp" {
apache_solr_gcp_connector {}
}
}