I hereby claim:
- I am rarruda on github.
- I am rarruda (https://keybase.io/rarruda) on keybase.
- I have a public key whose fingerprint is D0BF 0A10 6415 2F8B 6C09 0152 A55C 8374 20D2 7CD4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
diff --git a/lib/logstash/outputs/websocket/app.rb b/lib/logstash/outputs/websocket/app.rb | |
index b21ec9c..edffa11 100644 | |
--- a/lib/logstash/outputs/websocket/app.rb | |
+++ b/lib/logstash/outputs/websocket/app.rb | |
@@ -19,7 +19,23 @@ class LogStash::Outputs::WebSocket::App < Sinatra::Base | |
@logger.debug("New websocket client") | |
stream(:keep_open) do |out| | |
@pubsub.subscribe do |event| | |
- ws.publish(event) | |
+ if params.empty? |
# replace dots with underscores in the vhost field: | |
mutate { | |
type => "apache-access" | |
#gsub => [ "vhost", "[.]", "_" ] | |
gsub => [ "vhost", ".", "_" ] | |
tags => [ "vhost", "vhost-sub_site" ] | |
} |