Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Elastic Stack

You're reading from  Mastering Elastic Stack

Product type Book
Published in Feb 2017
Publisher Packt
ISBN-13 9781786460011
Pages 526 pages
Edition 1st Edition
Languages
Authors (2):
Ravi Kumar Gupta Ravi Kumar Gupta
Profile icon Ravi Kumar Gupta
Yuvraj Gupta Yuvraj Gupta
Profile icon Yuvraj Gupta
View More author details

Table of Contents (19) Chapters

Mastering Elastic Stack
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Elastic Stack Overview Stepping into Elasticsearch Exploring Logstash and Its Plugins Kibana Interface Using Beats Elastic Stack in Action Customizing Elastic Stack Elasticsearch APIs X-Pack: Security and Monitoring X-Pack: Alerting, Graph, and Reporting Best Practices Case Study-Meetup

Extending Logstash


There are two ways to extend Logstash: either by modifying the core or adding one more plugin to its repository. As we have already learned, there are four types of plugins - Input, Output, Filter, and Codec. Generating plugin in Logstash is very easy and needs only one command to be run; the generated plugin needs only our custom logic for it to be implemented.

Logstash plugins are written in Ruby programming language (http://www.ruby-lang.org/en/). These plugins are actually ruby gems. To be able to write effective gems, you should be familiar with Ruby.

In this section, we will develop our own input plugin, which will fetch data from a web service. The complete code of the plugin is available at GitHub at https://github.com/kravigupta/mastering-elastic-stack-code-files/tree/5.1.1/Chapter07/logstash-input-weather. The purpose of this exercise is to learn how a plugin can be generated and customized to serve the purpose, along with understanding of structure of the plugin...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}