mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
skip first line since we drop it
This commit is contained in:
parent
dc00b19715
commit
aa4b98bb06
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ MYSQL_SLOW_LOGS
|
|||
event = subject.first
|
||||
insist { event.message.split("\n").size } == 5 # 5 lines
|
||||
|
||||
lines.split("\n").each_with_index do |line, i|
|
||||
lines.split("\n")[1..5].each_with_index do |line, i|
|
||||
insist { event.message[i] } == line
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue