I am trying to parse the individual components so that I can reconstruct this to a different format using ruby. In the 'query' above, I need to extract "abc.com" and the query type (A) and in the 'response' NOERROR, and then the series of fields broken down by . I guess this will go into an array so that I can extract them and mutate appropriately.
Use grok to extract the input query, the result of the query (e.g. NOERROR), and the long string with the resulting records into discrete fields. Then use the mutate filter's split option to split the list of records into an array. Each element of that array can then be processed further but I suspect you'll need a ruby filter for that.
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.