{"id":2672,"date":"2018-08-28T05:50:09","date_gmt":"2018-08-28T11:50:09","guid":{"rendered":"https:\/\/www.supportpro.com\/blog\/?p=2672"},"modified":"2026-04-05T22:03:44","modified_gmt":"2026-04-06T04:03:44","slug":"logstash","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/logstash\/","title":{"rendered":"Logstash"},"content":{"rendered":"\n<p>Logstash (Log collection engine) collects Logs and events data, Parse and Transform. It is a tool for managing events and logs. Logstash is a system of log collection, processing, storage and searching activities. Basically, it collects, processes, and forwards events and log messages. The Collection can be completed via configuring the &#8220;Input plugins&#8221; including raw socket\/packet communication, file tailing, and several message bus clients. Once an input plugin has collected data it can be processed by any number of filters which modify and give an explanation of the event data. Finally, logstash will route the event data to output plugins which can forward the events to a variety of external programs including Elasticsearch, local files and several message bus implementations.<\/p>\n\n\n\n<p>A Logstash pipeline has two required elements, input and output, and one optional element, filter. The input plugins consume data from a source, the filter plugins modify the data as you specify, and the output plugins write the data to a destination.<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.elastic.co\/guide\/en\/logstash\/current\/static\/images\/basic_logstash_pipeline.png\" alt=\"Image result for logstash pipeline\"\/><\/figure>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>Logstash can collect logs from sources using input plugins, process the data into a common format using filters, and stream data using output plugins. It accepts data from all shapes and size of data. Logstash will move the data and store it into different storage for further analysis. Check the below-given image for further information:\u00a0<\/p>\n\n\n\n<p>1. For analysis, we can use datastore like MongoDB or elasticsearch<br>2. For archiving we can store data in the s3\/Google storage<br>3. For monitoring, we can use Nagios\/Graphite<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><span style=\"text-decoration: underline;\">Logstash Plug-ins<\/span><\/strong><\/h3>\n\n\n\n<p>Logstash has a collection of input, filter and output plugins.<\/p>\n\n\n\n<p><b>Input Plugins: <\/b> <span style=\"font-weight: 400;\">Enables &#8216;event&#8217; that can be read by logstash<\/span><\/p>\n\n\n\n<p><b>Filter Plugins: <\/b> <span style=\"font-weight: 400;\">Performs processing of an event<\/span><\/p>\n\n\n\n<p><b>Output Plugins<\/b><span style=\"font-weight: 400;\">: S<\/span><span style=\"font-weight: 400;\">ends event data to a different destination<\/span><\/p>\n\n\n\n<p><b>Logstash pipeline: <\/b> <span style=\"font-weight: 400;\">Basic configuration syntax of the logstash pipeline<\/span><\/p>\n\n\n\n<p><style type=\"text\/css\"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--><\/style><\/p>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"pcrstb-wrap\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Input Plugins<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Filter Plugins<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Output Plugins<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Beats<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Aggregate<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>CSV<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Elasticsearch<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>CSV<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Elasticsearch<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Kafka<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Date<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Email<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Graphite<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>geoip<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>File<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Heartbeat<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>grok<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Graphite<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Tttp<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Json<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Http<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>JDBC<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>sleep<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Jira<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>File<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>urlencode<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Kafka<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Log4j<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>UUID<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Nagios<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Redis<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>XML<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Redis<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Stdin<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>&nbsp;<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Stdout<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>TCP<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>&nbsp;<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>S3<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Twitter<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>&nbsp;<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>TCP<\/h5>\n<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>&nbsp;<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>&nbsp;<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>UDP<\/h5>\n<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Logstash configuration file contains the input and output element and the optional element filter. The Input plugin consumes the data from the source and the filter plugin modifies the data as you specify and an output plugin will write the data to the destination.<\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><span style=\"text-decoration: underline;\"><i>Configuration Files, Logs, and the Settings Files in the Appropriate Locations for the System<\/i><\/span><\/strong><style type=\"text\/css\">&amp;amp;lt;!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--><\/style><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"pcrstb-wrap\"><table class=\"has-fixed-layout\"><tbody><tr><td>\n<h5 style=\"text-align: center;\">Type<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Description<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Default Location<\/h5>\n<\/td><\/tr><tr><td>\n<h5 style=\"text-align: center;\">home<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Home directory Installation<\/h5>\n<\/td><td>\n<h5 style=\"text-align: center;\">\/usr\/share\/logstash<\/h5>\n<\/td><\/tr><tr><td>\n<h5 style=\"text-align: center;\">bin<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Binary scripts including logstash to start Logstash<\/h5>\n<h5>and logstash -plugin to install plugins<\/h5>\n<\/td><td>\n<h5 style=\"text-align: center;\">\/usr\/share\/logstash\/bin<\/h5>\n<\/td><\/tr><tr><td>\n<h5 style=\"text-align: center;\">settings<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Configuration files, JVM.options and startup.options including logstash.yml<\/h5>\n<\/td><td>\n<h5 style=\"text-align: center;\">\/etc\/logstash<\/h5>\n<\/td><\/tr><tr><td>\n<h5 style=\"text-align: center;\">conf<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Logstash pipeline configuration files<\/h5>\n<\/td><td>\n<h5 style=\"text-align: center;\">\/etc\/logstash\/conf.d\/*.conf<\/h5>\n<\/td><\/tr><tr><td>\n<h5 style=\"text-align: center;\">logs<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Log files<\/h5>\n<\/td><td>\n<h5 style=\"text-align: center;\">\/var\/log\/logstash<\/h5>\n<\/td><\/tr><tr><td>\n<h5 style=\"text-align: center;\">plugins<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Local, non-Ruby-Gem plugin files. Each plugin is contained in a subdirectory. Recommended for development only.<\/h5>\n<\/td><td>\n<h5 style=\"text-align: center;\">\/usr\/share\/logstash\/plugins<\/h5>\n<\/td><\/tr><tr><td>\n<h5 style=\"text-align: center;\">data<\/h5>\n<\/td><td class=\"has-text-align-center\" data-align=\"center\">\n<h5>Data files used by logstash and its plugins for any persistence needs<\/h5>\n<\/td><td>\n<h5 style=\"text-align: center;\">\/var\/lib\/logstash<\/h5>\n<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><a href=\"https:\/\/www.supportpro.com\/freecheckup.php\"><\/a><\/span><\/span><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img fetchpriority=\"high\" decoding=\"async\" width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Logstash (Log collection engine) collects Logs and events data, Parse and Transform. It is a tool for managing events and logs. Logstash is a system of log collection, processing, storage&hellip;<\/p>\n","protected":false},"author":4,"featured_media":2512,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[69,67,3],"tags":[],"class_list":["post-2672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","category-devops","category-technical-articles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/2672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=2672"}],"version-history":[{"count":17,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/2672\/revisions"}],"predecessor-version":[{"id":16884,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/2672\/revisions\/16884"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/2512"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=2672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=2672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=2672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}