Last active
October 27, 2017 21:52
-
-
Save andrewvc/1b6e5c72cf124ed39d311f9714dac271 to your computer and use it in GitHub Desktop.
Revisions
-
andrewvc revised this gist
Aug 3, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,7 @@ filter { } ruby { # Make a new field with the tab removed code => 'event.set("tabless", event.get("message").gsub(9.chr, ""))' } } -
andrewvc revised this gist
Aug 3, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ input { generator {} } filter { ruby { # Add a \t (tab) by using its ASCII code (9) code => 'event.set("message", 9.chr + event.get("message"))' } -
andrewvc created this gist
Aug 3, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ input { generator {} } filter { ruby { code => 'event.set("message", 9.chr + event.get("message"))' } ruby { code => 'event.set("tabless", event.get("message").gsub(9.chr, ""))' } } output { stdout { codec => rubydebug {} } }