Hi all,
if i want to extract first 255 characters from a field, and also the 255th character is space it should not be splitted , then it should split as 254th character.
Currently i am using the following code for extracting 255 character
This is ruby code only,but i am trying this logic in logstash.
I need to split the field which contains 1000 of characters into 255 character on each field.
For eg: spec: 1000 character to be be done as
spec1:0-254
spec2:255-509
...
"spec2":"5.8" W remote sharpener with spring-loaded dial slice thickness 0-0.94" VFD-motor ETL-Sanitation UL-157 gaskets and seals cETLus DGUV safety tested construction high carriage feed thumb guard 5.8" W slice thickness"
I heard that if I want make loop in Logstash, I have to use ruby filter. Unfortunately I'm not familiar with ruby
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.