Skip to content

Instantly share code, notes, and snippets.

@zaneGittins
Created September 25, 2020 15:05
Show Gist options
  • Save zaneGittins/e6caaca895452bb39a39fb1d6fac06a1 to your computer and use it in GitHub Desktop.
Save zaneGittins/e6caaca895452bb39a39fb1d6fac06a1 to your computer and use it in GitHub Desktop.
input-osquery-output-kafka.conf
input {
file {
path => [
"/var/log/osquery/result.log"
]
}
}
filter {
json {
source => "message"
target => "osquery"
}
}
output {
kafka {
bootstrap_servers => "<IP ADDRESS OF SITECOLLECTOR>:9093"
codec => json
ssl_keystore_location=>"/opt/certs/kafka.keystore.jks"
ssl_keystore_password=>"exabeam"
ssl_truststore_location=>"/opt/certs/kafka.truststore.jks"
ssl_truststore_password=>"exabeam"
ssl_endpoint_identification_algorithm=>""
security_protocol=>"SSL"
compression_type => "snappy"
topic_id => "lms.kafka.topic"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment