logstash-input-proc 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,25 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'logstash-input-proc'
3
+ s.version = '0.1.1'
4
+ s.licenses = ['Apache License (2.0)']
5
+ s.summary = "This plugin is for reading the /proc of a linux filesystem"
6
+ s.description = "Plugin is used with logstash"
7
+ s.authors = ["Edward Perry"]
8
+ s.email = 'edwardperry1@gmail.com'
9
+ s.homepage = "http://eperry.github.io/logstash-input-proc/"
10
+ s.require_paths = ["lib"]
11
+
12
+ # Files
13
+ s.files = `git ls-files`.split($\)
14
+ # Tests
15
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
16
+
17
+ # Special flag to let us know this is actually a logstash plugin
18
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
19
+
20
+ # Gem dependencies
21
+ s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
22
+ s.add_runtime_dependency 'logstash-codec-plain'
23
+ s.add_runtime_dependency 'stud'
24
+ s.add_development_dependency 'logstash-devutils'
25
+ end
data/logstash.conf ADDED
@@ -0,0 +1,55 @@
1
+ #####################################
2
+ ## This is an example Configuration of the logstash-output-proc to help you set it up quickly
3
+ #####################################
4
+
5
+ input {
6
+ proc {
7
+ interval = >60
8
+ # If any hash is missing it is disabled
9
+ # Collect VMSTATS
10
+ vmstats => { }
11
+ # Collect Load Average
12
+ loadavg => { }
13
+ #Collect Meminfo
14
+ meminfo => { }
15
+ #collect process stats
16
+ diskstats => { }
17
+ netdev => { }
18
+ wireless => { }
19
+ sysvipcshm => { }
20
+
21
+ }
22
+ ####################
23
+ ### You can have different rates of collecting data
24
+ ### These files I only want to collect once a day because they never change.
25
+ ####################
26
+ proc {
27
+ interval = >86400
28
+ # If any hash is missing it is disabled
29
+ # Collect VMSTATS
30
+ mounts => { }
31
+ cpuinfo => { }
32
+ crypto => { }
33
+ }
34
+ #####################
35
+ ### PID Stat gathers a lot of data and I one want to collect it every 5 minutes
36
+ #####################
37
+ proc {
38
+ interval = >300
39
+ pidstats => {
40
+ # If logstash is running as root this will collect more information about a process
41
+ # Only Collect process belonging to root (Real uid not euid)
42
+ user => "root"
43
+ }
44
+ }
45
+ }
46
+
47
+ output {
48
+ #elasticsearch {
49
+ # host => localhost
50
+ # index => "%{type}-%{+YYYY.MM.dd}"
51
+ #}
52
+ stdout{
53
+ codec=>"rubydebug"
54
+ }
55
+ }
@@ -0,0 +1 @@
1
+ require "logstash/devutils/rspec/spec_helper"
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-input-proc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Edward Perry
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: logstash-core
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.4.0
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
23
+ requirement: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: 1.4.0
28
+ - - <
29
+ - !ruby/object:Gem::Version
30
+ version: 2.0.0
31
+ prerelease: false
32
+ type: :runtime
33
+ - !ruby/object:Gem::Dependency
34
+ name: logstash-codec-plain
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ prerelease: false
46
+ type: :runtime
47
+ - !ruby/object:Gem::Dependency
48
+ name: stud
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ prerelease: false
60
+ type: :runtime
61
+ - !ruby/object:Gem::Dependency
62
+ name: logstash-devutils
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ requirement: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ prerelease: false
74
+ type: :development
75
+ description: Plugin is used with logstash
76
+ email: edwardperry1@gmail.com
77
+ executables: []
78
+ extensions: []
79
+ extra_rdoc_files: []
80
+ files:
81
+ - .gitignore
82
+ - ElasticSearch/README.md
83
+ - ElasticSearch/templates/loadavg.json
84
+ - ElasticSearch/templates/meminfo.json
85
+ - ElasticSearch/templates/vmstats.json
86
+ - Gemfile
87
+ - Kibana/READEME.md
88
+ - Kibana/export.json
89
+ - README.md
90
+ - Rakefile
91
+ - lib/logstash/inputs/proc.rb
92
+ - logstash-input-proc.gemspec
93
+ - logstash.conf
94
+ - spec/inputs/proc_spec.rb
95
+ homepage: http://eperry.github.io/logstash-input-proc/
96
+ licenses:
97
+ - Apache License (2.0)
98
+ metadata:
99
+ logstash_plugin: 'true'
100
+ logstash_group: input
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubyforge_project:
117
+ rubygems_version: 2.4.5
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: This plugin is for reading the /proc of a linux filesystem
121
+ test_files:
122
+ - spec/inputs/proc_spec.rb