mongrel2

Logstash Grok Pattern vs Python Regex?

只愿长相守 提交于 2019-12-13 00:45:43
问题 I am trying to configure logstash to manage my various log sources, one of which is Mongrel2. The format used by Mongrel2 is tnetstring , where a log message will take the form 86:9:localhost,12:192.168.33.1,5:57089#10:1411396297#3:GET,1:/,8:HTTP/1.1,3:200#6:145978#] I want to write my own grok patterns to extract certain fields from the above format. I started by testing my regex on the above message here, the regex is ^(?:[^:]*\:){2}([^,]*) this matches localhost . When I use the same regex

Sending websocket ping/pong frame from browser

你。 提交于 2019-11-26 23:54:08
I keep reading about ping/pong messages in websockets to keep the connection alive, but I'm not sure what they are. Is it a distinct frame type? (I don't see any methods on a javascript WebSocket object in chrome related to ping-pong). Or is it just a design pattern (e.g. I literally send "ping" or any other string to the server and have it respond). Is ping-pong at all related to continuation frames? The reason I ask is I'm using a python framework that runs behind Mongrel2, so I'm wondering if there's a way to send Mongrel2 a specific ping/pong message that would tell it to keep the

Sending websocket ping/pong frame from browser

有些话、适合烂在心里 提交于 2019-11-26 08:49:32
问题 I keep reading about ping/pong messages in websockets to keep the connection alive, but I\'m not sure what they are. Is it a distinct frame type? (I don\'t see any methods on a javascript WebSocket object in chrome related to ping-pong). Or is it just a design pattern (e.g. I literally send \"ping\" or any other string to the server and have it respond). Is ping-pong at all related to continuation frames? The reason I ask is I\'m using a python framework that runs behind Mongrel2, so I\'m