[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4009":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},4009,"logstash","elastic\u002Flogstash","elastic","Logstash - transport and process your logs, events, or other data","https:\u002F\u002Fwww.elastic.co\u002Fproducts\u002Flogstash",null,"Java",14874,3501,804,1983,0,1,10,27,7,45,"Other",false,"main",[26,27,28,29,30,31],"etl-framework","java","jruby","logging","real-time-processing","streaming","2026-06-12 02:00:57","# Logstash\n\nLogstash is part of the [Elastic Stack](https:\u002F\u002Fwww.elastic.co\u002Fproducts) along with Beats, Elasticsearch and Kibana. Logstash is a server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to your favorite \"stash.\" (Ours is Elasticsearch, naturally.). Logstash has over 200 plugins, and you can write your own very easily as well.\n\nFor more info, see \u003Chttps:\u002F\u002Fwww.elastic.co\u002Fproducts\u002Flogstash>\n\n## Documentation and Getting Started\n\nYou can find the documentation and getting started guides for Logstash\non the [elastic.co site](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Flogstash\u002Fcurrent\u002Fgetting-started-with-logstash.html)\n\nFor information about building the documentation, see the README in https:\u002F\u002Fgithub.com\u002Felastic\u002Fdocs\n\n## Downloads\n\nYou can download officially released Logstash binaries, as well as debian\u002Frpm packages for the\nsupported platforms, from [downloads page](https:\u002F\u002Fwww.elastic.co\u002Fdownloads\u002Flogstash).\n\n## Need Help?\n\n- [Logstash Forum](https:\u002F\u002Fdiscuss.elastic.co\u002Fc\u002Flogstash)\n- [Logstash Documentation](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Flogstash\u002Fcurrent\u002Findex.html)\n- [Logstash Product Information](https:\u002F\u002Fwww.elastic.co\u002Fproducts\u002Flogstash)\n- [Elastic Support](https:\u002F\u002Fwww.elastic.co\u002Fsubscriptions)\n\n## Logstash Plugins\n\nLogstash plugins are hosted in separate repositories under the [logstash-plugins](https:\u002F\u002Fgithub.com\u002Flogstash-plugins) github organization. Each plugin is a self-contained Ruby gem which gets published to RubyGems.org.\n\n### Writing your own Plugin\n\nLogstash is known for its extensibility. There are hundreds of plugins for Logstash and you can write your own very easily! For more info on developing and testing these plugins, please see the [working with plugins section](https:\u002F\u002Fwww.elastic.co\u002Fguide\u002Fen\u002Flogstash\u002Fcurrent\u002Fcontributing-to-logstash.html)\n\n### Plugin Issues and Pull Requests\n\n**Please open new issues and pull requests for plugins under its own repository**\n\nFor example, if you have to report an issue\u002Fenhancement for the Elasticsearch output, please do so [here](https:\u002F\u002Fgithub.com\u002Flogstash-plugins\u002Flogstash-output-elasticsearch\u002Fissues).\n\nLogstash core will continue to exist under this repository and all related issues and pull requests can be submitted here.\n\n## Developing Logstash Core\n\n### Prerequisites\n\n* Install JDK version 21. Make sure to set the `JAVA_HOME` environment variable to the path to your JDK installation directory. For example `set JAVA_HOME=\u003CJDK_PATH>`\n* Install JRuby 10.0.5.0 It is recommended to use a Ruby version manager such as [RVM](https:\u002F\u002Frvm.io\u002F) or [rbenv](https:\u002F\u002Fgithub.com\u002Fsstephenson\u002Frbenv).\n* Install `rake` and `bundler` tool using `gem install rake` and `gem install bundler` respectively.\n\n### RVM install (optional)\n\nIf you prefer to use rvm (ruby version manager) to manage Ruby versions on your machine, follow these directions. In the Logstash folder:\n\n```sh\ngpg --keyserver hkp:\u002F\u002Fkeys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3\n\\curl -sSL https:\u002F\u002Fget.rvm.io | bash -s stable --ruby=$(cat .ruby-version)\n```\n\n### Check Ruby version\n\nBefore you proceed, please check your ruby version by:\n\n```sh\n$ ruby -v\n```\n\nThe printed version should be the same as in the `.ruby-version` file.\n\n### Building Logstash\n\nThe Logstash project includes the source code for all of Logstash, including the Elastic-Licensed X-Pack features and functions; to run Logstash from source using only the OSS-licensed code, export the `OSS` environment variable with a value of `true`:\n\n``` sh\nexport OSS=true\n```\n\n* Set up the location of the source code to build\n\n``` sh\nexport LOGSTASH_SOURCE=1\nexport LOGSTASH_PATH=\u002FYOUR\u002FLOGSTASH\u002FDIRECTORY\n```\n\n#### Install dependencies with `gradle` **(recommended)**[^1]\n\n* Install development dependencies\n```sh\n.\u002Fgradlew installDevelopmentGems\n```\n\n* Install default plugins and other dependencies\n\n```sh\n.\u002Fgradlew installDefaultGems\n```\n\n### Verify the installation\n\nTo verify your environment, run the following to start Logstash and send your first event:\n\n```sh\nbin\u002Flogstash -e 'input { stdin { } } output { stdout {} }'\n```\n\nThis should start Logstash with stdin input waiting for you to enter an event\n\n```sh\nhello world\n2016-11-11T01:22:14.405+0000 0.0.0.0 hello world\n```\n\n**Advanced: Drip Launcher**\n\n[Drip](https:\u002F\u002Fgithub.com\u002Fninjudd\u002Fdrip) is a tool that solves the slow JVM startup problem while developing Logstash. The drip script is intended to be a drop-in replacement for the java command. We recommend using drip during development, in particular for running tests. Using drip, the first invocation of a command will not be faster but the subsequent commands will be swift.\n\nTo tell logstash to use drip, set the environment variable `` JAVACMD=`which drip` ``.\n\nExample (but see the *Testing* section below before running rspec for the first time):\n\n    JAVACMD=`which drip` bin\u002Frspec\n\n**Caveats**\n\nDrip does not work with STDIN. You cannot use drip for running configs which use the stdin plugin.\n\n## Building Logstash Documentation\n\nTo build the Logstash Reference (open source content only) on your local\nmachine, clone the following repos:\n\n[logstash](https:\u002F\u002Fgithub.com\u002Felastic\u002Flogstash) - contains main docs about core features\n\n[logstash-docs](https:\u002F\u002Fgithub.com\u002Felastic\u002Flogstash-docs) - contains generated plugin docs\n\n[docs](https:\u002F\u002Fgithub.com\u002Felastic\u002Fdocs) - contains doc build files\n\nMake sure you have the same branch checked out in `logstash` and `logstash-docs`.\nCheck out `master` in the `docs` repo.\n\nRun the doc build script from within the `docs` repo. For example:\n\n```\n.\u002Fbuild_docs.pl --doc ..\u002Flogstash\u002Fdocs\u002Findex.asciidoc --chunk=1 -open\n```\n\n## Testing\n\nMost of the unit tests in Logstash are written using [rspec](http:\u002F\u002Frspec.info\u002F) for the Ruby parts. For the Java parts, we use [junit](https:\u002F\u002Fjunit.org). For testing you can use the *test* `rake` tasks and the `bin\u002Frspec` command, see instructions below:\n\n### Core tests\n\n1- To run the core tests you can use the Gradle task:\n\n    .\u002Fgradlew test\n\n  or use the `rspec` tool to run all tests or run a specific test:\n\n    bin\u002Frspec\n    bin\u002Frspec spec\u002Ffoo\u002Fbar_spec.rb\n\n  Note that before running the `rspec` command for the first time you need to set up the RSpec test dependencies by running:\n\n    .\u002Fgradlew bootstrap\n\n2- To run the subset of tests covering the Java codebase only run:\n\n    .\u002Fgradlew javaTests\n\n3- To execute the complete test-suite including the integration tests run:\n\n    .\u002Fgradlew check\n\n4- To execute a single Ruby test run:\n\n    SPEC_OPTS=\"-fd -P logstash-core\u002Fspec\u002Flogstash\u002Fapi\u002Fcommands\u002Fdefault_metadata_spec.rb\" .\u002Fgradlew :logstash-core:rubyTests --tests org.logstash.RSpecTests\n\n5- To execute single spec for integration test, run:\n\n    .\u002Fgradlew integrationTests -PrubyIntegrationSpecs=specs\u002Fslowlog_spec.rb\n\nSometimes you might find a change to a piece of Logstash code causes a test to hang. These can be hard to debug.\n\nIf you set `LS_JAVA_OPTS=\"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005\"` you can connect to a running Logstash with your IDEs debugger which can be a great way of finding the issue.\n\n### Plugins tests\n\nTo run the tests of all currently installed plugins:\n\n    rake test:plugins\n\nYou can install the default set of plugins included in the logstash package:\n\n    rake test:install-default\n\n---\nNote that if a plugin is installed using the plugin manager `bin\u002Flogstash-plugin install ...` do not forget to also install the plugins development dependencies using the following command after the plugin installation:\n\n    bin\u002Flogstash-plugin install --development\n\n## Building Artifacts\n\nBuilt artifacts will be placed in the `LS_HOME\u002Fbuild` directory, and will create the directory if it is not already present.\n\nYou can build a Logstash snapshot package as tarball or zip file\n\n```sh\n.\u002Fgradlew assembleTarDistribution\n.\u002Fgradlew assembleZipDistribution\n```\n\nOSS-only artifacts can similarly be built with their own gradle tasks:\n```sh\n.\u002Fgradlew assembleOssTarDistribution\n.\u002Fgradlew assembleOssZipDistribution\n\n```\n\nYou can also build .rpm and .deb, but the [fpm](https:\u002F\u002Fgithub.com\u002Fjordansissel\u002Ffpm) tool is required.\n\n```sh\nrake artifact:rpm\nrake artifact:deb\n```\n\nand:\n\n```sh\nrake artifact:rpm_oss\nrake artifact:deb_oss\n```\n\n## Using a Custom JRuby Distribution\n\nIf you want the build to use a custom JRuby you can do so by setting a path to a custom\nJRuby distribution's source root via the `custom.jruby.path` Gradle property.\n\nE.g.\n\n```sh\n.\u002Fgradlew clean test -Pcustom.jruby.path=\"\u002Fpath\u002Fto\u002Fjruby\"\n```\n\n## Project Principles\n\n* Community: If a newbie has a bad time, it's a bug.\n* Software: Make it work, then make it right, then make it fast.\n* Technology: If it doesn't do a thing today, we can make it do it tomorrow.\n\n## Contributing\n\nAll contributions are welcome: ideas, patches, documentation, bug reports,\ncomplaints, and even something you drew up on a napkin.\n\nProgramming is not a required skill. Whatever you've seen about open source and\nmaintainers or community members saying \"send patches or die\" - you will not\nsee that here.\n\nIt is more important that you are able to contribute.\n\nFor more information about contributing, see the\n[CONTRIBUTING](.\u002FCONTRIBUTING.md) file.\n\n## Footnotes\n\n[^1]: \u003Cdetails>\u003Csummary>Use bundle instead of gradle to install dependencies\u003C\u002Fsummary>\n\n    #### Alternatively, instead of using `gradle` you can also use `bundle`:\n\n    * Install development dependencies\n\n        ```sh\n        bundle config set --local path vendor\u002Fbundle\n        bundle install\n        ```\n\n    * Bootstrap the environment:\n\n        ```sh\n        rake bootstrap\n        ```\n\n    * You can then use `bin\u002Flogstash` to start Logstash, but there are no plugins installed. To install default plugins, you can run:\n\n        ```sh\n        rake plugin:install-default\n        ```\n\n    This will install the 80+ default plugins which makes Logstash ready to connect to multiple data sources, perform transformations and send the results to Elasticsearch and other destinations.\n    \u003C\u002Fdetails>\n","Logstash 是一个用于收集、处理和转发日志、事件或其他数据的服务器端数据处理管道。其核心功能包括从多种来源同时摄入数据，通过丰富的插件系统对数据进行转换，并将处理后的数据发送到指定的目标存储或服务中，如Elasticsearch。Logstash 支持超过200个插件，并且用户可以轻松开发自定义插件以满足特定需求。它特别适合需要实时处理大量异构数据流的应用场景，比如日志分析、安全监控以及业务指标跟踪等。基于Java语言开发，Logstash是Elastic Stack的关键组成部分之一，能够与Beats、Elasticsearch及Kibana无缝集成，提供强大的数据处理能力。",2,"2026-06-11 02:57:43","top_language"]