Skip to content

Commit 87044fb

Browse files
committed
- remove references to monolithic
- add comment explaining what 'jar' does
1 parent 63d7d59 commit 87044fb

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/extending/example-add-a-new-filter.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ logstash](.) overview.
1414
Let's write a 'hello world' filter. This filter will replace the 'message' in
1515
the event with "Hello world!"
1616

17-
First, logstash expects plugins in a certain directory structure: logstash/TYPE/PLUGIN_NAME.rb
17+
First, logstash expects plugins in a certain directory structure: `logstash/TYPE/PLUGIN_NAME.rb`
1818

1919
Since we're creating a filter, let's mkdir this:
2020

@@ -88,9 +88,11 @@ plugin tree is. In our case, it's the current directory.
8888

8989
% logstash --pluginpath . -f example.conf
9090

91-
If you use the monolith jar release of logstash, you have an additional option
92-
- you can include the plugin right in the jar file.
91+
If you use the jar release of logstash, you have an additional option - you can
92+
include the plugin right in the jar file.
9393

94+
# This command will take your 'logstash/filters/foo.rb' file
95+
# and add it into the jar file.
9496
% jar -uf logstash-%VERSION%-flatjar.jar logstash/filters/foo.rb
9597

9698
# Verify it's in the right location in the jar!
@@ -112,8 +114,3 @@ The output is the standard logstash stdout output, but in this case our "the
112114
quick brown fox" message was replaced with "Hello world!"
113115

114116
All done! :)
115-
116-
117-
118-
119-

0 commit comments

Comments
 (0)