# Logstash

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

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

**Page:** 298

---

## [Remove LogLevel and Logger from message in logstash?](https://discuss.elastic.co/t/remove-loglevel-and-logger-from-message-in-logstash/250896)

<div class="topic-metadata">

**Author:** [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Replies:** 0\
**Last updated:** [October 4, 2020, 11:29am UTC](https://discuss.elastic.co/t/remove-loglevel-and-logger-from-message-in-logstash/250896 "2020-10-04T11:29:53Z")

</div>

Can I able to reove loglevel and logger from message. I want to create fields level and logger and store into it and then remove from message so it will easy to filterize log in kibana. Is this possible? How ?

---

## [Copy Field from a new processed document to an old Document](https://discuss.elastic.co/t/copy-field-from-a-new-processed-document-to-an-old-document/250897)

<div class="topic-metadata">

**Author:** [@Tensoue](https://discuss.elastic.co/u/Tensoue)\
**Replies:** 0\
**Last updated:** [October 4, 2020, 11:42am UTC](https://discuss.elastic.co/t/copy-field-from-a-new-processed-document-to-an-old-document/250897 "2020-10-04T11:42:49Z")

</div>

Hi all, I am trying to copy field from a new document received in logstash to an old one exists in the elasticsearch server. For example: There are 2 events, lets call them event1 and event2 event1{name: "xyz",lastna…

---

## [Logstash pipeline](https://discuss.elastic.co/t/logstash-pipeline/250799)

<div class="topic-metadata">

**Author:** [@KRISHNAPRASAD\_HG](https://discuss.elastic.co/u/KRISHNAPRASAD_HG)\
**Replies:** 3\
**Last updated:** [October 4, 2020, 10:32am UTC](https://discuss.elastic.co/t/logstash-pipeline/250799 "2020-10-04T10:32:05Z")

</div>

Below is my pipelines.yml file but the configs not picked by logstash! Anything wrong here? pipeline.id: step1 pipeline.workers: 1 path.config: "D:/logstash-7.8.1/config/step1.conf" pipeline.id: step2 pipeline.worker…

---

## [How can I indexing logs separate by their loggedtime(datetime)](https://discuss.elastic.co/t/how-can-i-indexing-logs-separate-by-their-loggedtime-datetime/250868)

<div class="topic-metadata">

**Author:** [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 5:39pm UTC](https://discuss.elastic.co/t/how-can-i-indexing-logs-separate-by-their-loggedtime-datetime/250868 "2020-10-03T17:39:31Z")

</div>

I have 3 log files which is like this logstash-2020.10.01 logstash-2020.10.02 logstash-2020.10.03 when I run logstash (run logstash.conf pipeline) it indexing all logs in one index. but i want to index them by the t…

---

## [How can I check loglevel with use of If else condition in logstash filter?](https://discuss.elastic.co/t/how-can-i-check-loglevel-with-use-of-if-else-condition-in-logstash-filter/250844)

<div class="topic-metadata">

**Author:** [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 7:34am UTC](https://discuss.elastic.co/t/how-can-i-check-loglevel-with-use-of-if-else-condition-in-logstash-filter/250844 "2020-10-03T07:34:08Z")

</div>

filter{ # 1. for LogLevel.Error logs grok{ match=\> \["message","%{DATESTAMP:timestamp} %{LOGLEVEL:level} %{USERNAME:logger} %{USER:user} %{URI:url} %{USER:method} %{IPV4:clientIp} %{GREEDYDATA:message}"\] } # 2. for…

---

## [Stopping LogStash after processing the data](https://discuss.elastic.co/t/stopping-logstash-after-processing-the-data/250749)

<div class="topic-metadata">

**Author:** [@Roman\_Kagan](https://discuss.elastic.co/u/Roman_Kagan)\
**Replies:** 4\
**Last updated:** [October 2, 2020, 9:58pm UTC](https://discuss.elastic.co/t/stopping-logstash-after-processing-the-data/250749 "2020-10-02T21:58:36Z")

</div>

Hello: I am creating my own conf file that I supply on command line to LogStash - it works like a charm, however it does not stop after processing all the data. I do not expect to generate new files in some folder, nor…

---

## [Running sample text file thorough logstash](https://discuss.elastic.co/t/running-sample-text-file-thorough-logstash/250821)

<div class="topic-metadata">

**Author:** [@sukumar.koganti](https://discuss.elastic.co/u/sukumar.koganti)\
**Replies:** 8\
**Last updated:** [October 2, 2020, 9:33pm UTC](https://discuss.elastic.co/t/running-sample-text-file-thorough-logstash/250821 "2020-10-02T21:33:46Z")

</div>

This is my sample file FName,Lname,sal,location Suresh,Koganti,6000,Montreal Denis,Gallagher,7000,Quebec and this is my conf file input { file{ path =\> "C:\\Users\\skkoganti\\Documents\\log\\users.txt" start\_p…

---

## [Nested Json Array parse failure](https://discuss.elastic.co/t/nested-json-array-parse-failure/250564)

<div class="topic-metadata">

**Author:** [@Feedy](https://discuss.elastic.co/u/Feedy)\
**Replies:** 9\
**Last updated:** [October 2, 2020, 9:17pm UTC](https://discuss.elastic.co/t/nested-json-array-parse-failure/250564 "2020-10-02T21:17:57Z")

</div>

I am having trouble parsing json log file that contains nested array. I am trying to add the values in the array after "docs" as their own searchable field linked to the target docs. Here is sample log below: {"dba\_serv…

---

## [How to share field data between documents of the same file path](https://discuss.elastic.co/t/how-to-share-field-data-between-documents-of-the-same-file-path/250838)

<div class="topic-metadata">

**Author:** [@NomadicCodeGuy](https://discuss.elastic.co/u/NomadicCodeGuy)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 8:23pm UTC](https://discuss.elastic.co/t/how-to-share-field-data-between-documents-of-the-same-file-path/250838 "2020-10-02T20:23:58Z")

</div>

I am using logstash to parse test logs. Some test log files have multiple errors per file. Only the last error in each file contains the "scenario" information but I need all errors from the same file path to share the s…

---

## [Parsing PFSense Proxy logs in Syslog](https://discuss.elastic.co/t/parsing-pfsense-proxy-logs-in-syslog/250818)

<div class="topic-metadata">

**Author:** [@Lee\_Archinal](https://discuss.elastic.co/u/Lee_Archinal)\
**Replies:** 8\
**Last updated:** [October 2, 2020, 7:49pm UTC](https://discuss.elastic.co/t/parsing-pfsense-proxy-logs-in-syslog/250818 "2020-10-02T19:49:12Z")

</div>

Good morning everyone, I recently deployed a PFSense box and enabled a Squid Proxy. I am shipping those logs to my ELK server to process and display in Kibana. I currently have filebeat running on my stack and have the …

---

## [Error stacktrace take separate log line in logstash](https://discuss.elastic.co/t/error-stacktrace-take-separate-log-line-in-logstash/250812)

<div class="topic-metadata">

**Author:** [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 4:51pm UTC](https://discuss.elastic.co/t/error-stacktrace-take-separate-log-line-in-logstash/250812 "2020-10-02T16:51:18Z")

</div>

I used multiline pattern in filebeat. the stacktrace of error log taking another line.not be with error log here is my filebeat multiline pattern: multiline.pattern: '^\[\[:space:\]\]' multiline.negate: false multiline.m…

---

## [XML filter in logstash](https://discuss.elastic.co/t/xml-filter-in-logstash/250291)

<div class="topic-metadata">

**Author:** [@SSSPR](https://discuss.elastic.co/u/SSSPR)\
**Replies:** 11\
**Last updated:** [October 2, 2020, 5:16pm UTC](https://discuss.elastic.co/t/xml-filter-in-logstash/250291 "2020-10-02T17:16:01Z")

</div>

Hi All, I want to match the message name and value but both are linked with a variable p , how to extract each of the message name and match with corresponding value using the variable p with respective corresponding ob…

---

## [Could not execute action: PipelineAction::Create](https://discuss.elastic.co/t/could-not-execute-action-pipelineaction-create/250802)

<div class="topic-metadata">

**Author:** [@Dung\_Tri\_Le](https://discuss.elastic.co/u/Dung_Tri_Le)\
**Replies:** 4\
**Last updated:** [October 2, 2020, 4:12pm UTC](https://discuss.elastic.co/t/could-not-execute-action-pipelineaction-create/250802 "2020-10-02T16:12:50Z")

</div>

Hello, I'm totally new user for ELK stask and I try to make Logstask working with my logfile format on an ubuntu stand alone server with docker. Kibana, Elastic-search, and logstash containers with the default config i…

---

## [Logstash don't take filebeat logs which is i added in filebeat.yml](https://discuss.elastic.co/t/logstash-dont-take-filebeat-logs-which-is-i-added-in-filebeat-yml/250655)

<div class="topic-metadata">

**Author:** [@Bhavin\_Varsur](https://discuss.elastic.co/u/Bhavin_Varsur)\
**Replies:** 4\
**Last updated:** [October 2, 2020, 3:01pm UTC](https://discuss.elastic.co/t/logstash-dont-take-filebeat-logs-which-is-i-added-in-filebeat-yml/250655 "2020-10-02T15:01:04Z")

</div>

I installed latest version 7.9.2 for both logstash and filebeat. logstash successfully started api endpoint but don't take logs of filebeat. which i added path of my logs in filebeat log input. i added my logs path but…

---

## [Can't delete empty field](https://discuss.elastic.co/t/cant-delete-empty-field/250678)

<div class="topic-metadata">

**Author:** [@hiba](https://discuss.elastic.co/u/hiba)\
**Replies:** 6\
**Last updated:** [October 2, 2020, 2:50pm UTC](https://discuss.elastic.co/t/cant-delete-empty-field/250678 "2020-10-02T14:50:30Z")

</div>

Hi, i want to parse a json response and load data into elasticsearch via logstash , i try to delete arrDate and depDate fields if it's empty ,,,but i still got this error, \[2020-10-01T13:24:13,646\]\[WARN \]\[logstash.out…

---

## [Creating a counter out of log occurrences and scraping the log itself](https://discuss.elastic.co/t/creating-a-counter-out-of-log-occurrences-and-scraping-the-log-itself/250778)

<div class="topic-metadata">

**Author:** [@Jarek1](https://discuss.elastic.co/u/Jarek1)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 1:38pm UTC](https://discuss.elastic.co/t/creating-a-counter-out-of-log-occurrences-and-scraping-the-log-itself/250778 "2020-10-02T13:38:26Z")

</div>

Hi Community, can you please advice me how to proceed with the following topic? I am feeding unstructured logs from 3rd party application to the logstash via UDP feed. Logs are categorized by using grok script. For som…

---

## [Overriding logstash.yml in pipelines.yml](https://discuss.elastic.co/t/overriding-logstash-yml-in-pipelines-yml/250757)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 1:36pm UTC](https://discuss.elastic.co/t/overriding-logstash-yml-in-pipelines-yml/250757 "2020-10-02T13:36:49Z")

</div>

Hi, I am testing a pipelined configuration using the output isolator pattern. While this I am still using pipeline batch/worker settings from logstash.yml and would like to use pipeline.ordered for one of the outputs. W…

---

## [Logstash file output. gzip performance](https://discuss.elastic.co/t/logstash-file-output-gzip-performance/250761)

<div class="topic-metadata">

**Author:** [@Samuel\_Delepiere](https://discuss.elastic.co/u/Samuel_Delepiere)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 1:34pm UTC](https://discuss.elastic.co/t/logstash-file-output-gzip-performance/250761 "2020-10-02T13:34:28Z")

</div>

Hi, I have a logstash instance ingesting large amount of log files data from Kafka. I write them back to disk using the file output plugin. From a performance point of view, is it better to get logstash to zip on the f…

---

## [Lumberjack error: Client write error, trying connect (..syswrite, write\_sync, multi\_receive, output\_batch, worker\_loop, start\_workers)](https://discuss.elastic.co/t/lumberjack-error-client-write-error-trying-connect-syswrite-write-sync-multi-receive-output-batch-worker-loop-start-workers/250557)

<div class="topic-metadata">

**Author:** [@Stanvv](https://discuss.elastic.co/u/Stanvv)\
**Replies:** 4\
**Last updated:** [October 2, 2020, 1:21pm UTC](https://discuss.elastic.co/t/lumberjack-error-client-write-error-trying-connect-syswrite-write-sync-multi-receive-output-batch-worker-loop-start-workers/250557 "2020-10-02T13:21:09Z")

</div>

When trying to forward data via the lumberjack protocol, we get the following error: See full error\[2020-09-30T20:23:04,014\]\[ERROR\]\[logstash.outputs.lumberjack\] Client write error, trying connect {:e=\>#\<IOError: C…

---

## [Static date conversion arbitrary failed](https://discuss.elastic.co/t/static-date-conversion-arbitrary-failed/250783)

<div class="topic-metadata">

**Author:** [@sesti](https://discuss.elastic.co/u/sesti)\
**Replies:** 0\
**Last updated:** [October 2, 2020, 12:09pm UTC](https://discuss.elastic.co/t/static-date-conversion-arbitrary-failed/250783 "2020-10-02T12:09:39Z")

</div>

For some reason I don't understand, logstash randomly fails to convert a date that doesn't change. date format: Fri Oct 2 error message: error type mapper\_parsiing\_exception ... with format \[strict\_date\_optionnal\_time\] …

---

## [Test run fails](https://discuss.elastic.co/t/test-run-fails/250706)

<div class="topic-metadata">

**Author:** [@Craig2188](https://discuss.elastic.co/u/Craig2188)\
**Replies:** 7\
**Last updated:** [October 2, 2020, 10:43am UTC](https://discuss.elastic.co/t/test-run-fails/250706 "2020-10-02T10:43:56Z")

</div>

Hi, I have Logstash (on a seperate server to ES) set to run as a service, but wanted to test it first by running \\bin\\logstash.bat -f .\\config\\logstash-conf.conf However when I run this it appears to start but then st…

---

## [Lostash and arcsight integration](https://discuss.elastic.co/t/lostash-and-arcsight-integration/247434)

<div class="topic-metadata">

**Author:** [@sidhesh\_kumar](https://discuss.elastic.co/u/sidhesh_kumar)\
**Replies:** 9\
**Last updated:** [October 2, 2020, 10:10am UTC](https://discuss.elastic.co/t/lostash-and-arcsight-integration/247434 "2020-10-02T10:10:50Z")

</div>

unable to configure smart connector on logstash content of logstash.yml modules: name: arcsight var.input.eventbroker.bootstrap\_servers: "XXXX.XXXXXX.XXXXX:1515" var.input.eventbroker.topics: "eb\_topic" var.elasti…

---

## [Split objects in a nested array into separate record](https://discuss.elastic.co/t/split-objects-in-a-nested-array-into-separate-record/250425)

<div class="topic-metadata">

**Author:** [@jasoninmel](https://discuss.elastic.co/u/jasoninmel)\
**Replies:** 12\
**Last updated:** [October 1, 2020, 11:09pm UTC](https://discuss.elastic.co/t/split-objects-in-a-nested-array-into-separate-record/250425 "2020-10-01T23:09:49Z")

</div>

Hi there, I have the following data structure in Elasticsearch. { "id": "559466", "name": "test", "availability": \[ { "assetId": "559466", "type": "pen", "complete": true, "availableFr…

---

## [Logstash if condition](https://discuss.elastic.co/t/logstash-if-condition/250689)

<div class="topic-metadata">

**Author:** [@Yotam\_Mazurik](https://discuss.elastic.co/u/Yotam_Mazurik)\
**Replies:** 4\
**Last updated:** [October 1, 2020, 10:04pm UTC](https://discuss.elastic.co/t/logstash-if-condition/250689 "2020-10-01T22:04:45Z")

</div>

Hey, i'm new to logstash and got stuck while trying to create an if condition... The structure of my if condition: if (\[process\]\[executable\] not in \[processes\]\["%{\[process\]\[hash\]\[md5\]}"\]\[paths\]) { .... } w…

---

## [Dissect failure for no obvious reason](https://discuss.elastic.co/t/dissect-failure-for-no-obvious-reason/250634)

<div class="topic-metadata">

**Author:** [@Haptomai](https://discuss.elastic.co/u/Haptomai)\
**Replies:** 3\
**Last updated:** [October 1, 2020, 9:47pm UTC](https://discuss.elastic.co/t/dissect-failure-for-no-obvious-reason/250634 "2020-10-01T21:47:49Z")

</div>

Hi there, For no obvious (to me) reason, a certain message coming from filebeat that always fell in error on logstash processing. Here is the sample: Oct 1 09:38:12 ff434-srv1 MC: debug {74308} \[ApiUiJob\] PlanJob()…

---

## [Logstash started but filebeat says connection refused](https://discuss.elastic.co/t/logstash-started-but-filebeat-says-connection-refused/250732)

<div class="topic-metadata">

**Author:** [@Sravan\_Kumar\_Guduru](https://discuss.elastic.co/u/Sravan_Kumar_Guduru)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 7:07pm UTC](https://discuss.elastic.co/t/logstash-started-but-filebeat-says-connection-refused/250732 "2020-10-01T19:07:50Z")

</div>

Interestingly my logstash is running when I tried ps -ef | grep logstash and when my filebeat tries to send the logs it is getting connection refused error. When I even do telent , i get below error message \[root@Ganes…

---

## [Filebeat is not sending logs to Logstash, logstash is localhost](https://discuss.elastic.co/t/filebeat-is-not-sending-logs-to-logstash-logstash-is-localhost/250586)

<div class="topic-metadata">

**Author:** [@Sravan\_Kumar\_Guduru](https://discuss.elastic.co/u/Sravan_Kumar_Guduru)\
**Replies:** 4\
**Last updated:** [October 1, 2020, 7:06pm UTC](https://discuss.elastic.co/t/filebeat-is-not-sending-logs-to-logstash-logstash-is-localhost/250586 "2020-10-01T19:06:46Z")

</div>

Hi All, I am having trouble with my filebeat/logstash. connectivity seems to be inconsistenst. When i try it in debug mode it works fine but when i use it with systemctl start it fails . Below are my filebeat and logst…

---

## [Sort Elasticsearch output in Logstash](https://discuss.elastic.co/t/sort-elasticsearch-output-in-logstash/250723)

<div class="topic-metadata">

**Author:** [@Nikopoulos](https://discuss.elastic.co/u/Nikopoulos)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 4:53pm UTC](https://discuss.elastic.co/t/sort-elasticsearch-output-in-logstash/250723 "2020-10-01T16:53:16Z")

</div>

I have 2 logstash pipelines. The first one uploads log lines in elasticsearch using csv filter. These are the columns \[timestamp,machine,application\]. The other pipeline gets data from elasticsearch, sorts them by timest…

---

## [Event with multiple patterns](https://discuss.elastic.co/t/event-with-multiple-patterns/250700)

<div class="topic-metadata">

**Author:** [@fluss](https://discuss.elastic.co/u/fluss)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 3:44pm UTC](https://discuss.elastic.co/t/event-with-multiple-patterns/250700 "2020-10-01T15:44:28Z")

</div>

Hello, I have an event as on below: Rule 'device' failed for user 'user45' reason 'Rule1:OS not found'. grok { match =\> \["event","%{GREEDYDATA}reason '%{GREEDYDATA:rule}:%{GREEDYDATA:reason}'."\] } rule: Rule1 reas…

---

## [Logstash - If %{statement} has "value"](https://discuss.elastic.co/t/logstash-if-statement-has-value/250702)

<div class="topic-metadata">

**Author:** [@headtea](https://discuss.elastic.co/u/headtea)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 3:22pm UTC](https://discuss.elastic.co/t/logstash-if-statement-has-value/250702 "2020-10-01T15:22:12Z")

</div>

In Logstash, I'm trying to set a condition where if within a file named "cowrie.json", if a new message is received that starts with "login attempt\*" - send an email. This is what I tried: output { if \[log\]\[file\]\[pat…

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

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