Skip to content

Instantly share code, notes, and snippets.

View devinrsmith's full-sized avatar

Devin Smith devinrsmith

  • Deephaven Data Labs
View GitHub Profile
@devinrsmith
devinrsmith / FixedInput.java
Created November 14, 2014 17:20
FixedInput allows the same byte[] to be passed into Input.
import com.esotericsoftware.kryo.io.Input;
import java.io.InputStream;
/**
* Created by dsmith on 11/14/14.
*
* In reference to https://github.com/EsotericSoftware/kryo/issues/264
*/
public class FixedInput extends Input {
@devinrsmith
devinrsmith / ncsa grok
Last active August 29, 2015 14:07
"Common" log format, NCSA, etc for grok.
(?:%{IP:clientip}|%{HOSTNAME:clienthost}) %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})" %{NUMBER:response} (?:%{NUMBER:bytes}|-) %{QS:referrer} %{QS:agent}
input {
tcp {
type => "syslog"
port => 514
}
}
filter {
if [type] == "syslog" {
grok {
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-button/paper-button.html">
@devinrsmith
devinrsmith / gist:f81ffd5f9baf117157aa
Created May 27, 2014 18:38
tahoeusnaothusntoaehusrcg'aeui rcsh
aoeu-naotehusanoehusaontehuosaenuhoae
uaoeusntaoebunsathu
au
abua,ehbua,u