Questions tagged [logstash-file]

Logstash File Input stream events from Files

221 questions
0
votes
1 answer

Logstash: How to read logs which created by date / time

Our servers store log files under directory according to date, with time as file name. e.g: /2015.08.21/01.23 /2015.08.21/01.24 /2015.08.21/01.25 where the filenames follow [hours].[minutes] convention. How to configure Logstash to read from the…
janetsmith
  • 8,562
  • 11
  • 58
  • 76
0
votes
1 answer

logstash unexpectedly stopped

I have set up a logstash with redis architecture to handle my logs. The way I have organized it is: logstash ---> redis ---> logstash ---> elasticsearch but the problem that occurred is that after parsing nearly 1.25 million logs a java exception is…
Keshav Agarwal
  • 811
  • 1
  • 10
  • 28
0
votes
1 answer

Logstash File Input not outputting event after file change

I am trying to read from a file and output each events to the console (or a file). I want to be able to add to the file and have this be picked up by Logstash and repeat the pipeline. However, Logstash seems to only read and perform the pipeline…
Justin Cuaresma
  • 459
  • 5
  • 7
0
votes
0 answers

How configure multiple files using logstash.conf file

I am going to configure all log files present in location(D:\Logs folder) log files are 1.Magna_Log4Net.log.20150623_bak 2.Magna_Log4Net.log.20150624_bak 3.Magna_Log4Net.log.20150625_bak 4.Magna_Log4Net.log.20150626_bak logstash.conf file …
0
votes
1 answer

How to achieve fault tolerance with logstash forwarder?

I am using Logstash Forwarder to process tomcat logs. My logstash forwarder config file contains : "files": [ { "paths": [ "/usr/share/tomcat/impression_logs/impressions.log" ] }] I am using log rotation so it will archive log file to different…
-1
votes
1 answer

How to get custom key value in the logstash kafka input?

In my producer, I've added a few custom keys in the headers. Using logstash i need to get the payload in addition I need to read the value of my keys. Producer code: kafkaTemplate .send( …
-1
votes
1 answer

Foreach message in logstash

I need help, I want to compare 2 or more messages containce kv in logstash examples : first message : X < 10=5.4|9=14|36=V|3=9|49=360T_SEP|5=Good|220=p48 second messages : y1 > 8=pap4|10=495|37=d|34=7|49=SEP|220=p48 y2 >…
-1
votes
1 answer

logstash not reading input file after trying all the options

Logstash not taking file input, i have tried all the options available and answers from other questions. Attaching conf file and logs. Tried: start_position => beginning sincedb_path => "D:\ELK\d.d1" ignore_older => 0 CONF FILE: input { file…
-1
votes
1 answer

Logstash Filter - add field with value current directory name

I want to add two fields using the split filter plugin of Logstash. The following example will give more context to the problem, the directory structure is as follows: Artist | |___Album | |__SongsList.xml When I parse the XML…
Harish
  • 1,433
  • 9
  • 21
-1
votes
1 answer

Logstash input line by line

How can i read files in logstash line by line using codec? When i tried the below configuration but it is not working: file { path => "C:/DEV/Projects/data/*.csv" start_position => "beginning" codec => line { format => "%{[data]}" }
-1
votes
1 answer

Trying to create grok pattern for my logs, but unsure how to escape special charaters

07:40:28,339 INFO [org.sprinframework.web.context.ContxtLoader] (ServerService Thread Pool -- 672) WebApplicationContext: initialization started I wrote the pattern like this grok { match => { "message" =>…
1 2 3
14
15