Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
untergeek committed Jan 9, 2015
1 parent 191a373 commit 1bdb87e
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gemspec
gem "logstash", :github => "elasticsearch/logstash", :branch => "1.5"
13 changes: 13 additions & 0 deletions LICENSE
@@ -0,0 +1,13 @@
Copyright (c) 2012-2015 Elasticsearch <http://www.elasticsearch.org>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
1 change: 1 addition & 0 deletions Rakefile
@@ -0,0 +1 @@
require "logstash/devutils/rake"
16 changes: 16 additions & 0 deletions lib/logstash/outputs/example.rb
@@ -0,0 +1,16 @@
# encoding: utf-8
require "logstash/outputs/base"
require "logstash/namespace"

# An example output that does nothing.
class LogStash::Outputs::Example < LogStash::Outputs::Base
config_name "example"

public
def register
end # def register

public
def receive(event)
end # def event
end # class LogStash::Outputs::Example
23 changes: 23 additions & 0 deletions logstash-output-example.gemspec
@@ -0,0 +1,23 @@
Gem::Specification.new do |s|
s.name = 'logstash-output-example'
s.version = '0.1.0'
s.licenses = ['Apache License (2.0)']
s.summary = "This example output does nothing."
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
s.authors = ["Elasticsearch"]
s.email = 'info@elasticsearch.com'
s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
s.require_paths = ["lib"]

# Files
s.files = `git ls-files`.split($\)
# Tests
s.test_files = s.files.grep(%r{^(test|spec|features)/})

# Special flag to let us know this is actually a logstash plugin
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }

# Gem dependencies
s.add_runtime_dependency 'logstash', '>= 1.4.0', '< 2.0.0'
s.add_development_dependency 'logstash-devutils'
end
1 change: 1 addition & 0 deletions spec/outputs/example_spec.rb
@@ -0,0 +1 @@
require "logstash/devutils/rspec/spec_helper"

0 comments on commit 1bdb87e

Please sign in to comment.