Questions tagged [logstash-file]

Logstash File Input stream events from Files

221 questions
0
votes
2 answers

Logstash 7.10.02 failed to start on windows

I tried starting the logstash with the below command logstash-7.10.2\logstash -f logstash.conf logstash.conf input{ file{ path => "D://server.log" start_position=> "beginning" type => "logs" } } filter { grok { match =>…
0
votes
0 answers

Architecture logstash configuration file in ElasticStack

Hi guys i need ur idea in best ways in architecturing logstash configuration file. I have 3 environment sit, uat and prod and few host such as mq and webfitas. Each environment and host have few logs such as access.log, server.log and eai_new.log…
0
votes
1 answer

Logstash file output to different host

Logstash is running on a K8 pod. I'm trying to save logstash data to a file in a different host. Can you please let me know how to set host name? output { file { path => "/app/log/path/%{Name}-%{+YYYY-MM-dd}.log" } }
Kapila
  • 85
  • 2
  • 6
0
votes
1 answer

Is it possible Logstash push same content from log file to ElasticSearch

The logstash config sets log files as input source and then sends the content to ElasticSearch. The input part is like below input{ file{ path => "/data/logs/backend.log*" start_position => "beginning" } } Then the log file…
xuanzhui
  • 1,300
  • 4
  • 12
  • 30
0
votes
1 answer

Logstash stopped processing because of an error: (SystemExit) exit

We are trying to index Nginx access and error log separately in Elasticsearch. for that we have created Filbeat and Logstash config as below. Below is our /etc/filebeat/filebeat.yml configuration filebeat.inputs: - type: log paths: -…
0
votes
1 answer

No mapping found for [@timestamp] in order to sort logstash

I am getting this error "No mapping found for [@timestamp] in order to sort logstash" My conf file input { elasticsearch { hosts => ["localhost"] index => "employees_data" query => '{ "query": { "match_all": { } } }' scroll => "5m" docinfo…
user223321
  • 155
  • 1
  • 15
0
votes
1 answer

java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

I am trying to use logstash to push data into kibana, but while running logstash.conf file i am getting error Error Message: Sending Logstash logs to E:/dev/logstash-7.9.0/logs which is now configured via…
0
votes
0 answers

Keywords as Fields in Logstash

I am new to ELK stack. My requirement is to read several .log files and analyze the data in Kibana. In the log file, I have several occurrences of certain keyword, let's say "xyz". Is there any way, I can create a field for this keyword ("xyz") in…
0
votes
0 answers

Logstash write hash line by line to csv

I have a file which contains multiple JSON lines. I am able to transform them into the below structure. { "@version" => "1", "key" => "my_key", "host_name" => "machine1", "@timestamp" =>…
0
votes
1 answer

Logstash : Mutate gsub doen't change anything

No matter what i change it feels like the gsub is just ignored. "port": 5021, "@timestamp": "2020-07-25T02:16:03.747Z", "host": "xxx.xxx.xxx.xxx", "@version": "1", "message": "000 361.609\r" This is my output, ultimately i want to remove everything…
0
votes
1 answer

Logstash No config files found in path

I am getting following exception when start Logstash on my Windows10 machine. Sending Logstash logs to D:/elk/logstash-7.7.1/logs which is now configured via log4j2.properties [2020-06-15T23:37:21,547][WARN ][logstash.config.source.multilocal]…
M.A.Murali
  • 9,988
  • 36
  • 105
  • 182
0
votes
0 answers

Elastic search logstash conf error while publish

While validating the logstash conf file, result is ok. But when i try to publish the logstash there is error which i can't able to resolve it. Let me know anyone has any clue on this error.
Kannan
  • 1
  • 2
0
votes
0 answers

Logstash .odx file input

I was hoping someone could help me regarding input in logstash. I am very new to logstash and I have a requirement where my logstash input file is an unconventional file. How do I input an ODX input file? I think delimiter for the input file is # as…
0
votes
1 answer

Logstash Exception: Errno::EACCES in reading csv file

I trying am reading a csv file and index it into elastic. Logstash is giving this error: [2020-03-15T14:43:02,424][ERROR][logstash.javapipeline ][main] A plugin had an unrecoverable error. Will restart this plugin. Pipeline_id:main …
0
votes
1 answer

logstash won’t read single line files

I'm trying to make a pipeline that sends xml documents to elasticsearch. Problem is that each document is in its own separate file as a single line without \n in the end. Any way to tell logstash not to wait for \n but read whole file till EOF and…
lacerated
  • 375
  • 1
  • 4
  • 17