flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Hoschek <whosc...@cloudera.com>
Subject Re: morphline - detecting mime type
Date Mon, 31 Mar 2014 05:19:39 GMT
detectMimetype can’t detect whether it’s valid JSON, it can at most see whether it looks
like JSON in the first few bytes. Consider wrapping the readJson in a tryRules command to
handle it.

On Mar 30, 2014, at 10:11 PM, Andrew Sammut <asammut@kixeye.com> wrote:

> 
> Hi all,
> 
> Has anyone used detectMimetype to validate whether the attachment appears to be legitimate
json prior to the execution of readJson?
> 
> Regards,
> Andrew S
> 
> -- 
> Andrew Sammut
> Lead Reliability Engineer (AUS)
> 
> Mobile: +61 (0)435 072 784
> Google Voice: +1 (415) 548 1927
> Email: asammut@kixeye.com
> Skype: kix.asammut


Mime
View raw message