Good morning,
Can I get some help !
I have a log file, where the first data on each line is in timestamp format.
to do my analysis I need to know the order of these lines, so I used a new "seq" field with the ruby filter, as follows:
filter {
ruby {
path => "path/seq.rb"
}
}
my seq.rb is :
# encoding: binary
def register(params)
@seq = 0
end
def filter(event)
event.set("seq", @seq)
@seq += 1
return [event]
end
I've had workers =1 since the beginning but I still have the problem of these lines in disorder.
Can the encoding line at the beginning of my seq.rb file cause this problem?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.