logstash-filter-hola 1.0.0.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1d395798b085cf2adafb0a39cab4e3add09acca0002e6b9226854e1b84509e71
4
+ data.tar.gz: c8a68cd04b782304052f19b7ac8c2f2090f26faa370a23568426f9119861708e
5
+ SHA512:
6
+ metadata.gz: 3565e1ab67f7fd0db15a320113c339b7c40f8e30f4730408ab4009dd761e2753e60dbbb33ee5187062555cdf26c90ed0bef5c1726c14b2bc2457e1fe99b1e648
7
+ data.tar.gz: 2045633fa704beb0eaf9ac80041d2a2401a459f06ae52a2c8767c491fb89ac5bff38727bf22a8ab3c56b6dbdcd03cece9d3e47fd31b29e6a7379a6627d8a8984
@@ -0,0 +1,28 @@
1
+ # encoding: utf-8
2
+ require "logstash/filters/base"
3
+ require "logstash/namespace"
4
+
5
+ # This is our "Hello, World!" filter plugin.
6
+ # It adds a simple greeting field to every event.
7
+ class LogStash::Filters::Hola < LogStash::Filters::Base
8
+ # The `config_name` is used to identify the plugin in a Logstash pipeline.
9
+ # If you use `filter { hola { ... } }` in your pipeline config,
10
+ # Logstash will look for this plugin.
11
+ config_name "hola"
12
+
13
+ public
14
+ def register
15
+ # This method is called once when the plugin is initialized.
16
+ # No setup needed for this simple plugin.
17
+ end # def register
18
+
19
+ public
20
+ def filter(event)
21
+ # This method is called for every event that passes through the filter.
22
+ event.set("greeting", "Hello, world! from the hola plugin.")
23
+
24
+ # This is important! It signals that the event was successfully filtered
25
+ # and should be passed to the next stage in the pipeline.
26
+ filter_matched(event)
27
+ end # def filter
28
+ end # class LogStash::Filters::Hola
@@ -0,0 +1,23 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'logstash-filter-hola'
3
+ s.version = '1.0.0.pre' # Using a pre-release version
4
+ s.licenses = ['Apache-2.0']
5
+ s.summary = 'A simple hello world filter plugin for Logstash.'
6
+ s.description = 'This plugin adds a "greeting" field to events.'
7
+ s.authors = ['Rohit Bandlamudi']
8
+ s.email = 'rohitraju360@gmail.com'
9
+ # s.homepage = 'https://github.com/your-repo/logstash-filter-hola'
10
+ s.require_paths = ['lib']
11
+
12
+ # Files to include in the gem
13
+ s.files = Dir['lib/**/*', 'spec/**/*', 'vendor/**/*', '*.gemspec', '*.md', 'CONTRIBUTORS', 'LICENSE', 'NOTICE.TXT']
14
+
15
+ # This is the crucial part that identifies it as a Logstash plugin
16
+ s.metadata = {
17
+ "logstash_plugin" => "true",
18
+ "logstash_group" => "filter" # or "input", "output", "codec"
19
+ }
20
+
21
+ # Gem dependencies
22
+ s.add_runtime_dependency 'logstash-core-plugin-api', '>= 2.1.12'
23
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-filter-hola
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.pre
5
+ platform: ruby
6
+ authors:
7
+ - Rohit Bandlamudi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 2.1.12
19
+ name: logstash-core-plugin-api
20
+ prerelease: false
21
+ type: :runtime
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.12
27
+ description: This plugin adds a "greeting" field to events.
28
+ email: rohitraju360@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/logstash/filters/hola.rb
34
+ - logstash-filter-hola.gemspec
35
+ homepage:
36
+ licenses:
37
+ - Apache-2.0
38
+ metadata:
39
+ logstash_plugin: 'true'
40
+ logstash_group: filter
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.3.1
55
+ requirements: []
56
+ rubygems_version: 3.2.14
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: A simple hello world filter plugin for Logstash.
60
+ test_files: []