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
if err != nil { | |
fmt.Fprintf(os.Stderr, "Could not read the file, file: %s, error: %v\n", file, err) | |
os.Exit(1) | |
} |
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
Paste your code between the ``` | |
```yaml | |
filebeat.prospectors: | |
# Each - is a prospector. Most options can be set at the prospector level, so | |
# you can use different prospectors for various configurations. | |
# Below are the prospector specific configurations. | |
- type: log |
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
# encoding: utf-8 | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rack' | |
gem 'sinatra', :require => 'sinatra/base' | |
gem 'pry' | |
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
class CompressedRequests | |
def initialize(app) | |
@app = app | |
end | |
def method_handled?(env) | |
!!(env['REQUEST_METHOD'] =~ /(POST|PUT)/) | |
end | |
def encoding_handled?(env) |
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
{ | |
"successful": { | |
"logstash-codec-cef": { | |
"version": "4.1.3", | |
"from": "default" | |
}, | |
"logstash-codec-collectd": { | |
"version": "3.0.5", | |
"from": "default" | |
}, |
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
Execution of label: Fetch all available plugins on `logstash-plugins`, 61.17s | |
Default installed: 94 Total available plugins: 197 | |
Successfully installed: logstash-filter-cidr | |
Successfully installed: logstash-filter-elasticsearch | |
Successfully installed: logstash-filter-translate | |
Failed to install: logstash-filter-punct | |
Successfully installed: logstash-input-github | |
Successfully installed: logstash-filter-anonymize | |
Successfully installed: logstash-codec-compress_spooler | |
Failed to install: logstash-codec-oldlogstashjson |
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
Failures: | |
1) LogStash::Timestamp constructors should work | |
Failure/Error: expect(t.time).to eq(now) | |
expected: 2017-05-17 19:08:23.399613000 +0000 | |
got: 2017-05-17 19:08:23.399000000 +0000 | |
(compared using ==) |
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
{ | |
"successful": { | |
"logstash-core-plugin-api": { | |
"version": "2.1.16", | |
"from": "default" | |
}, | |
"logstash-codec-cef": { | |
"version": "4.1.2", | |
"from": "default" | |
}, |
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
# encoding: utf-8 | |
require "logstash/config/source/base" | |
require "logstash/config/pipeline_config" | |
require "logstash/util/loggable" | |
require "logstash/errors" | |
module LogStash module Config module Source | |
# Modules could be a weird names? | |
class Modules < Base | |
def pipeline_configs |
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
{ | |
"successful": { | |
"logstash-core-plugin-api": { | |
"version": "2.1.16", | |
"from": "default" | |
}, | |
"logstash-codec-cef": { | |
"version": "4.1.2", | |
"from": "default" | |
}, |