:plugin: solr_http :type: output :default_codec: plain /////////////////////////////////////////// START - GENERATED VARIABLES, DO NOT EDIT! /////////////////////////////////////////// :version: %VERSION% :release_date: %RELEASE_DATE% :changelog_url: %CHANGELOG_URL% :include_path: ../../../../logstash/docs/include /////////////////////////////////////////// END - GENERATED VARIABLES, DO NOT EDIT! /////////////////////////////////////////// [id="plugins-{type}s-{plugin}"] === Solr_http output plugin include::{include_path}/plugin_header.asciidoc[] ==== Description This output lets you index&store your logs in Solr. If you want to get started quickly you should use version 4.4 or above in schemaless mode, which will try and guess your fields automatically. To turn that on, you can use the example included in the Solr archive: [source,shell] tar zxf solr-4.4.0.tgz cd example mv solr solr_ #back up the existing sample conf cp -r example-schemaless/solr/ . #put the schemaless conf in place java -jar start.jar #start Solr You can learn more at https://lucene.apache.org/solr/[the Solr home page] [id="plugins-{type}s-{plugin}-options"] ==== Solr_http Output Configuration Options This plugin supports the following configuration options plus the <> described later. [cols="<,<,<",options="header",] |======================================================================= |Setting |Input type|Required | <> |<>|No | <> |<>|No | <> |<>|No | <> |<>|No |======================================================================= Also see <> for a list of options supported by all output plugins.   [id="plugins-{type}s-{plugin}-document_id"] ===== `document_id` * Value type is <> * Default value is `nil` Solr document ID for events. You'd typically have a variable here, like '%{foo}' so you can assign your own IDs [id="plugins-{type}s-{plugin}-flush_size"] ===== `flush_size` * Value type is <> * Default value is `100` Number of events to queue up before writing to Solr [id="plugins-{type}s-{plugin}-idle_flush_time"] ===== `idle_flush_time` * Value type is <> * Default value is `1` Amount of time since the last flush before a flush is done even if the number of buffered events is smaller than flush_size [id="plugins-{type}s-{plugin}-solr_url"] ===== `solr_url` * Value type is <> * Default value is `"http://localhost:8983/solr"` URL used to connect to Solr [id="plugins-{type}s-{plugin}-common-options"] include::{include_path}/{type}.asciidoc[] :default_codec!: