# Logstash

**URL:** https://discuss.elastic.co/c/elastic-stack/logstash/14.md?page=421

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 422

---

## [Logstash split filter throwing \_split\_type\_failure](https://discuss.elastic.co/t/logstash-split-filter-throwing-split-type-failure/213984)

<div class="topic-metadata">

**Author:** [@karthiknpy](https://discuss.elastic.co/u/karthiknpy)\
**Replies:** 2\
**Last updated:** [January 13, 2020, 7:36am UTC](https://discuss.elastic.co/t/logstash-split-filter-throwing-split-type-failure/213984 "2020-01-13T07:36:03Z")

</div>

Hi Team, I have a situation to break json using split filter which works fine. But certain scenarios where some subkeys of json are optional. when the split filter is not able to find a specific key to split it is throw…

---

## [Logstash Block in block in converge\_state](https://discuss.elastic.co/t/logstash-block-in-block-in-converge-state/214763)

<div class="topic-metadata">

**Author:** [@katara](https://discuss.elastic.co/u/katara)\
**Replies:** 0\
**Last updated:** [January 13, 2020, 6:17am UTC](https://discuss.elastic.co/t/logstash-block-in-block-in-converge-state/214763 "2020-01-13T06:17:12Z")

</div>

Hi Below is my Logstash (7.2.0) conf file: input { http\_poller { urls =\> { snowsr =\> { url =\> "https://now.com/api/now/table/u\_service\_request?sysparm\_display\_value=true&sysparm\_exclude\_reference\_link=tr…

---

## [Stop proccesing events/lines after first grok match](https://discuss.elastic.co/t/stop-proccesing-events-lines-after-first-grok-match/214696)

<div class="topic-metadata">

**Author:** [@nino](https://discuss.elastic.co/u/nino)\
**Replies:** 10\
**Last updated:** [January 12, 2020, 11:41pm UTC](https://discuss.elastic.co/t/stop-proccesing-events-lines-after-first-grok-match/214696 "2020-01-12T23:41:16Z")

</div>

Hello all, i am not be able to avoid logstash continues proccesing events after grok patter matched. I just want to index the first occurence of the entire file. Here is what i have: File content first line content... …

---

## [Parsing json Kinesis stream to S3 bucket - How to add new lines b/n records](https://discuss.elastic.co/t/parsing-json-kinesis-stream-to-s3-bucket-how-to-add-new-lines-b-n-records/214742)

<div class="topic-metadata">

**Author:** [@stefank](https://discuss.elastic.co/u/stefank)\
**Replies:** 0\
**Last updated:** [January 12, 2020, 10:00pm UTC](https://discuss.elastic.co/t/parsing-json-kinesis-stream-to-s3-bucket-how-to-add-new-lines-b-n-records/214742 "2020-01-12T22:00:45Z")

</div>

Hi All, I am trying to parse Kinesis stream and store it into S3 buckets. I managed to do that, but I also need to have a newline between each stream record. Is this something that can be done within logstash config? I …

---

## [How to add a tag based on input data](https://discuss.elastic.co/t/how-to-add-a-tag-based-on-input-data/214713)

<div class="topic-metadata">

**Author:** [@debojyoti\_bandyopadh](https://discuss.elastic.co/u/debojyoti_bandyopadh)\
**Replies:** 4\
**Last updated:** [January 12, 2020, 5:15pm UTC](https://discuss.elastic.co/t/how-to-add-a-tag-based-on-input-data/214713 "2020-01-12T17:15:52Z")

</div>

Hello, I am a beginner in logstash and currently learning the basics. I am stuck while solving a problem. Basically my input(to logstash) can be a series of Alphabets like below: a b a c d I want to add a tag "A" i…

---

## [Dd Geo Point From Twitter geo Field](https://discuss.elastic.co/t/dd-geo-point-from-twitter-geo-field/214716)

<div class="topic-metadata">

**Author:** [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 3:09pm UTC](https://discuss.elastic.co/t/dd-geo-point-from-twitter-geo-field/214716 "2020-01-12T15:09:10Z")

</div>

how to add Geo Point From Twitter geo ? i am using twiiter API like this input { twitter { consumer\_key =\> "" consumer\_secret =\> "" oauth\_token =\> "" oauth\_token\_secret =\> "" keywords =\> \["USA"\] full\_tweet =\> tr…

---

## [Logstash Twitter Dyanmic Keywords and Search filter](https://discuss.elastic.co/t/logstash-twitter-dyanmic-keywords-and-search-filter/214697)

<div class="topic-metadata">

**Author:** [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 3:00pm UTC](https://discuss.elastic.co/t/logstash-twitter-dyanmic-keywords-and-search-filter/214697 "2020-01-12T15:00:22Z")

</div>

Can i use Can i use logstash http plugin to to feed log twitter keywords search ? input { http { host =\> "http://localhost/WebApplication3/home/Keywords" port =\> 80 } } filter { mutate { add\_field =\> { "token…

---

## [Send Daynamic keywords to twitter API in logstash](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693)

<div class="topic-metadata">

**Author:** [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Replies:** 3\
**Last updated:** [January 11, 2020, 8:11am UTC](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693 "2020-01-11T08:11:30Z")

</div>

I am using Logstash to stream twittter tweets like below input { twitter { consumer\_key =\> "" consumer\_secret =\> "" oauth\_token =\> "" oauth\_token\_secret =\> "" keywords =\> \["USA","Trump"\] full\_tweet =\> true type …

---

## [Remove extra lines from output message](https://discuss.elastic.co/t/remove-extra-lines-from-output-message/214538)

<div class="topic-metadata">

**Author:** [@Saravana37](https://discuss.elastic.co/u/Saravana37)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 4:45am UTC](https://discuss.elastic.co/t/remove-extra-lines-from-output-message/214538 "2020-01-11T04:45:46Z")

</div>

Hi , I am using multiline pattern to filter my output message from Exec plugin , Now I am able to get the lines separately according to my required pattern ^D122, But i am getting some extra characters in the message lik…

---

## [Http\_Poller Trend Micro DeepSecurity](https://discuss.elastic.co/t/http-poller-trend-micro-deepsecurity/214686)

<div class="topic-metadata">

**Author:** [@Zorkmid](https://discuss.elastic.co/u/Zorkmid)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 11:36pm UTC](https://discuss.elastic.co/t/http-poller-trend-micro-deepsecurity/214686 "2020-01-10T23:36:17Z")

</div>

Hello Everyone, I'd like to use the http\_poller plugin to pull events from Trend Micro Deep Security using the REST api they have. I have 2 concerns on this - Has anyone done this with LS and if you have what issues i…

---

## [Grok filter for log files in logstash](https://discuss.elastic.co/t/grok-filter-for-log-files-in-logstash/213377)

<div class="topic-metadata">

**Author:** [@Mehak\_Bhargava](https://discuss.elastic.co/u/Mehak_Bhargava)\
**Replies:** 13\
**Last updated:** [January 10, 2020, 7:30pm UTC](https://discuss.elastic.co/t/grok-filter-for-log-files-in-logstash/213377 "2020-01-10T19:30:35Z")

</div>

input { beats { port =\> 5044 } } filter { if\[log\_type\] =="access"{ grok { match =\> {"message" =\> "%{COMBINEDAPACHELOG}"} } else if \[log\_type\] == "errors" { grok { match =\> { "messa…

---

## [Date filter dateparsefailure](https://discuss.elastic.co/t/date-filter-dateparsefailure/214668)

<div class="topic-metadata">

**Author:** [@DevOP](https://discuss.elastic.co/u/DevOP)\
**Replies:** 1\
**Last updated:** [January 10, 2020, 9:21pm UTC](https://discuss.elastic.co/t/date-filter-dateparsefailure/214668 "2020-01-10T21:21:30Z")

</div>

Hello... I've been experimenting with logstash capabilities lately, and no matter which direction I take with the date filter, I seem to end up with \_dateparsefailure. So to save myself the frustration, I was wondering …

---

## [A typical case of SQL relation: aggregating results from jdbc input plugin (nested)](https://discuss.elastic.co/t/a-typical-case-of-sql-relation-aggregating-results-from-jdbc-input-plugin-nested/214597)

<div class="topic-metadata">

**Author:** [@Ahmed\_Ahmed](https://discuss.elastic.co/u/Ahmed_Ahmed)\
**Replies:** 5\
**Last updated:** [January 10, 2020, 9:22pm UTC](https://discuss.elastic.co/t/a-typical-case-of-sql-relation-aggregating-results-from-jdbc-input-plugin-nested/214597 "2020-01-10T21:22:53Z")

</div>

I would like to ask With reference to the following where there is a parent-child relation is pipelined Logstash aggregate-example4 I wonder how to achieve a scenario where event elements have a hierarchal relationship…

---

## [Regex in filter plugin not working](https://discuss.elastic.co/t/regex-in-filter-plugin-not-working/214641)

<div class="topic-metadata">

**Author:** [@srbhklkrn](https://discuss.elastic.co/u/srbhklkrn)\
**Replies:** 7\
**Last updated:** [January 10, 2020, 9:22pm UTC](https://discuss.elastic.co/t/regex-in-filter-plugin-not-working/214641 "2020-01-10T21:22:23Z")

</div>

Hello, I'm trying to tag one host by using syslog5424\_host but it's not matching anything. First, can I tag syslog5424\_host? if yes can I use it directly in the output section and forward it to the destination instead …

---

## [Index lifecyle policy doesn't rollover the index automatically](https://discuss.elastic.co/t/index-lifecyle-policy-doesnt-rollover-the-index-automatically/214511)

<div class="topic-metadata">

**Author:** [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)\
**Replies:** 1\
**Last updated:** [January 10, 2020, 9:08pm UTC](https://discuss.elastic.co/t/index-lifecyle-policy-doesnt-rollover-the-index-automatically/214511 "2020-01-10T21:08:47Z")

</div>

Objective: Write a Logstash configuration that receives logs and sends it to an index using an ILM policy, and rolls over an index after a certain threshold (max 10 documents). Below is my Logstash configuration for th…

---

## [Process twice a specific field created by grok](https://discuss.elastic.co/t/process-twice-a-specific-field-created-by-grok/214623)

<div class="topic-metadata">

**Author:** [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Replies:** 1\
**Last updated:** [January 10, 2020, 5:12pm UTC](https://discuss.elastic.co/t/process-twice-a-specific-field-created-by-grok/214623 "2020-01-10T17:12:27Z")

</div>

Hi guys, I would like to know if there is a way to apply grok filter on a message to obtain several fields and then apply one more time grok filter to extract a subset of information from a field. currently, collecting…

---

## [Routing one input to diferent indexes](https://discuss.elastic.co/t/routing-one-input-to-diferent-indexes/214423)

<div class="topic-metadata">

**Author:** [@nino](https://discuss.elastic.co/u/nino)\
**Replies:** 5\
**Last updated:** [January 10, 2020, 4:27pm UTC](https://discuss.elastic.co/t/routing-one-input-to-diferent-indexes/214423 "2020-01-10T16:27:05Z")

</div>

Hello all, i don't know if this can be achieve with logstah. I am just starting with logstash. This is the structure of each file that comes in the folder every day: DATE: FEB 10, 2020 \*\*\*\*\*\*\* section 1 \*\*\*\*\*\*\*\* COL…

---

## [Added new field to index, how to enable it for all previous data?](https://discuss.elastic.co/t/added-new-field-to-index-how-to-enable-it-for-all-previous-data/214625)

<div class="topic-metadata">

**Author:** [@IndiaSierra](https://discuss.elastic.co/u/IndiaSierra)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 3:33pm UTC](https://discuss.elastic.co/t/added-new-field-to-index-how-to-enable-it-for-all-previous-data/214625 "2020-01-10T15:33:35Z")

</div>

We collect a great amount of logs from our systems. These logs are already stored in a field "message" as a normal string message. I now added (via logstash filter) a field which is a very specific log with timing info …

---

## [No default Year/month/day for only HH:mm:ss,SSS logs](https://discuss.elastic.co/t/no-default-year-month-day-for-only-hhss-sss-logs/214043)

<div class="topic-metadata">

**Author:** [@drubior](https://discuss.elastic.co/u/drubior)\
**Replies:** 4\
**Last updated:** [January 10, 2020, 12:04pm UTC](https://discuss.elastic.co/t/no-default-year-month-day-for-only-hhss-sss-logs/214043 "2020-01-10T12:04:31Z")

</div>

We have some logfiles wich store only the time in format "HH:mm:ss,SSS" ( no day, month, year info) 11:38:58,654 INFO \[ajp-195.72.2xx.17-8109-722\] \[lm.PerfilLoginModule\] : \[TOKEN\_OK\] authenticated user pepito This ha…

---

## [Logstash file input stopped picking up file changes](https://discuss.elastic.co/t/logstash-file-input-stopped-picking-up-file-changes/214586)

<div class="topic-metadata">

**Author:** [@shchuka](https://discuss.elastic.co/u/shchuka)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 10:35am UTC](https://discuss.elastic.co/t/logstash-file-input-stopped-picking-up-file-changes/214586 "2020-01-10T10:35:35Z")

</div>

I am using logstash to process a large number of log files (over 1000 files in total). After the initial setup, all log files were processed successfully and logged into elasticsearch. This took just over a day. Then ne…

---

## [Error Logstash: unable to load plugin Postgresql.jar](https://discuss.elastic.co/t/error-logstash-unable-to-load-plugin-postgresql-jar/214562)

<div class="topic-metadata">

**Author:** [@Kostis95](https://discuss.elastic.co/u/Kostis95)\
**Replies:** 1\
**Last updated:** [January 10, 2020, 10:01am UTC](https://discuss.elastic.co/t/error-logstash-unable-to-load-plugin-postgresql-jar/214562 "2020-01-10T10:01:45Z")

</div>

Hi there, I'm trying to get started with elasticsearch and to use it for our forum data (which is stored in a postgresql database). I read that it would be possible to sync a postgresql database with elastic by using lo…

---

## [Parent/child in logstash](https://discuss.elastic.co/t/parent-child-in-logstash/214577)

<div class="topic-metadata">

**Author:** [@Intissar\_Ayadi](https://discuss.elastic.co/u/Intissar_Ayadi)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 9:47am UTC](https://discuss.elastic.co/t/parent-child-in-logstash/214577 "2020-01-10T09:47:46Z")

</div>

I m receiving data from two Streaming input .I m using logstash to parse data then send them to elasticsearch and evry input has many fields , ipadress in common field with the other input. After searching, i found that…

---

## [Does logstash-keystore has a force flag? Or a quiet flag?](https://discuss.elastic.co/t/does-logstash-keystore-has-a-force-flag-or-a-quiet-flag/214575)

<div class="topic-metadata">

**Author:** [@asp](https://discuss.elastic.co/u/asp)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 9:31am UTC](https://discuss.elastic.co/t/does-logstash-keystore-has-a-force-flag-or-a-quiet-flag/214575 "2020-01-10T09:31:42Z")

</div>

Hi, I want to fill logstash-keystore via ansible and want to pipe the value via stdin. So I need to fill anything from stdin and need to avoid any readings from input during the run like "do you really want to overwrite…

---

## [How to add a field to kibana via logstash](https://discuss.elastic.co/t/how-to-add-a-field-to-kibana-via-logstash/214569)

<div class="topic-metadata">

**Author:** [@akuninja](https://discuss.elastic.co/u/akuninja)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 9:07am UTC](https://discuss.elastic.co/t/how-to-add-a-field-to-kibana-via-logstash/214569 "2020-01-10T09:07:49Z")

</div>

---

## [How to stream log file in another instance](https://discuss.elastic.co/t/how-to-stream-log-file-in-another-instance/214546)

<div class="topic-metadata">

**Author:** [@dhody\_rhmd](https://discuss.elastic.co/u/dhody_rhmd)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 7:11am UTC](https://discuss.elastic.co/t/how-to-stream-log-file-in-another-instance/214546 "2020-01-10T07:11:44Z")

</div>

Hello, I am new in this scope and need some explanation. I working with VM instance, there is 2 instance that each instance are ELK and LEMP architecture with Laravel. I just wonder if there is way to stream Laravel log…

---

## [Log correlation with threat feeds](https://discuss.elastic.co/t/log-correlation-with-threat-feeds/214540)

<div class="topic-metadata">

**Author:** [@yayemail](https://discuss.elastic.co/u/yayemail)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 6:05am UTC](https://discuss.elastic.co/t/log-correlation-with-threat-feeds/214540 "2020-01-10T06:05:01Z")

</div>

Hi everyone, I am working on ELK currently, using the Apache httpd web server as a sample. I'm trying to match/correlate my apache access logs with signatures ( https://gist.github.com/xsscx/530fa25964f94e74d7c1 ). Can …

---

## [JDBC static loader to create local table from index rater than a database](https://discuss.elastic.co/t/jdbc-static-loader-to-create-local-table-from-index-rater-than-a-database/214536)

<div class="topic-metadata">

**Author:** [@ishu.singla](https://discuss.elastic.co/u/ishu.singla)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 5:50am UTC](https://discuss.elastic.co/t/jdbc-static-loader-to-create-local-table-from-index-rater-than-a-database/214536 "2020-01-10T05:50:01Z")

</div>

I am using JDBC streaming for my local lookups because I need to replace data from another legacy database. This process is very very slow. I cannot create a local table out of it because data is in millions. Is there a …

---

## [Using my own date field instead of using the default timestamp in index creation](https://discuss.elastic.co/t/using-my-own-date-field-instead-of-using-the-default-timestamp-in-index-creation/214479)

<div class="topic-metadata">

**Author:** [@kumar4](https://discuss.elastic.co/u/kumar4)\
**Replies:** 4\
**Last updated:** [January 9, 2020, 11:51pm UTC](https://discuss.elastic.co/t/using-my-own-date-field-instead-of-using-the-default-timestamp-in-index-creation/214479 "2020-01-09T23:51:27Z")

</div>

hello, i want to use the date in column named time in my csv file instead of timestamp when creating index,i indexed a csv file containing multiple columns, among the columns there is a date field in Y-m-d H:M:S format, …

---

## [Logstash optionally set output options](https://discuss.elastic.co/t/logstash-optionally-set-output-options/214504)

<div class="topic-metadata">

**Author:** [@Riddhesh](https://discuss.elastic.co/u/Riddhesh)\
**Replies:** 0\
**Last updated:** [January 9, 2020, 10:40pm UTC](https://discuss.elastic.co/t/logstash-optionally-set-output-options/214504 "2020-01-09T22:40:13Z")

</div>

Suppose I have some documents with join field, so they may have parent(e.g. \[join\_field\]\[parent\]) field in them, so as per docs, I need to pass that to \_routing in logstash elasticsearch output: ... output { elasticse…

---

## [Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:test, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #,](https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-test-exception-logstash-configurationerror-message-expected-one-of/214486)

<div class="topic-metadata">

**Author:** [@Mehak\_Bhargava](https://discuss.elastic.co/u/Mehak_Bhargava)\
**Replies:** 4\
**Last updated:** [January 9, 2020, 9:32pm UTC](https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-test-exception-logstash-configurationerror-message-expected-one-of/214486 "2020-01-09T21:32:03Z")

</div>

I am not sure why is the if\[fields\]\[log\_type\] throwing error here Here is the error my pipeline.conf file is giving below \[2020-01-09T11:51:31,810\]\[ERROR\]\[logstash.agent \] Failed to execute action {:action=\>L…

[Previous page](https://discuss.elastic.co/c/elastic-stack/logstash/14.md?page=420)

[Next page](https://discuss.elastic.co/c/elastic-stack/logstash/14.md?page=422)
