Ruby code to iterate through message


I have input message as follow without header columns:
2006-02-15,76.5,77.5,76,80,58353 2006-02-16,77,80.1,77,76.3,49795 2006-02-19,82.3,82.3,76,79,45729 2006-02-20,79.5,79.5,75.5,79.4,63007

what i want to do is split the message by space then loop through and then split each token again separated by comma to create new events, also how do i create the field names while looping?
as far as i know i cant use loop in logstash and i need ruby,,,which i never used before.
any help will be really appreciated...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.