- Document field references
- Docment %{...} syntax
- Update config docs with new hash syntax
- Ensure plugin documentation is correct for 1.2
- Ensure 'kibana 3' is noted for web
- Document conditionals
- Add "in" support to conditionals
- Update life of an event to include codecs
- Restore multiline filter before release.
- Write tests for all conditional operators
This file contains 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 characters
% bin/logstash agent -e 'filter { xml { source => "message" xpath => [ "//Property/@Code", "ota_hotel_code" ] } }' | |
<Property xml:lang="en" Code="XM;2086"/><Property xml:lang="en" Code="II;6413"/> | |
output: | |
{ | |
"message" => "<Property xml:lang=\"en\" Code=\"XM;2086\"/><Property xml:lan | |
g=\"en\" Code=\"II;6413\"/>", |
This file contains 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 characters
#!/bin/bash | |
#curl -XPUT 'http://logmon.myworkplace.local:9200/_template/template_logstash/' -d ' | |
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d ' | |
{ | |
"template": "logstash-*", | |
"settings": { | |
"index": { | |
"query": { |
This file contains 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 characters
class A | |
def initialize | |
@value = 1 | |
end | |
def self.makebar(&block) | |
define_method(:bar) do | |
super() | |
block.call | |
end |
This file contains 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 characters
% git diff f3818ede20971489cd74335b75a572f97962a062..master -- spec/test_utils.rb | xclip -i | |
Using /home/jls/.rvm/gems/ruby-1.9.3-p448 | |
diff --git a/spec/test_utils.rb b/spec/test_utils.rb | |
index 077c9b3..bc5ec12 100644 | |
--- a/spec/test_utils.rb | |
+++ b/spec/test_utils.rb | |
@@ -1,5 +1,6 @@ | |
require "insist" |
This file contains 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 characters
% gzip -dc agetty_2.21.2-2_ar71xx.ipk| tar -xO ./control.tar.gz | tar -zxO ./control | |
Package: agetty | |
Version: 2.21.2-2 | |
Depends: libc | |
Source: package/utils/util-linux | |
SourceFile: util-linux-2.21.2.tar.xz | |
SourceURL: @KERNEL/linux/utils/util-linux/v2.21 | |
License: GPLv2 LGPLv2.1 BSD-3c | |
LicenseFiles: COPYING getopt/COPYING libblkid/COPYING libmount/COPYING Documentation/licenses/COPYING.GPLv2 Documentation/licenses/COPYING.LGPLv2.1 libuuid/COPYING Documentation/licenses/COPYING.BSD-3 | |
Section: utils |
This file contains 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 characters
$ man timeout | grep -A3 DIAGNOSTICS | |
Reformatting timeout(1), please wait... | |
DIAGNOSTICS | |
timeout's exit status is the exit status of the specified command or 1 | |
in case of a usage error. | |
$ timeout 5 sh -c 'echo hello; exit 77' | |
hello | |
$ echo $? | |
0 |
This file contains 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 characters
module Foo | |
class Error < StandardError; end | |
end | |
module Foo | |
class Baz | |
def initialize | |
puts Error | |
end | |
end |
This file contains 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 characters
require "cabin" | |
logger = Cabin::Channel.get | |
logger.level = :debug | |
logger.subscribe(STDOUT) | |
task :default do | |
logger.info("Hello world") | |
end |
A user wants to write some a subset of data (for a test) to elasticsearch, verify it looks correct, then purge that data. After verification, the intent is to write the full set of data as normal.
- In your elasticsearch output, set 'index' to something like 'test'
output { elasticsearch { index => 'test' ... } }
- Point kibana at the 'test' index.
- Do whatever searches you want