You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Otto Fowler (JIRA)" <ji...@apache.org> on 2016/10/11 14:58:21 UTC
[jira] [Commented] (METRON-424) Stellar fieldValidation "IP" does
not support list values
[ https://issues.apache.org/jira/browse/METRON-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565657#comment-15565657 ]
Otto Fowler commented on METRON-424:
------------------------------------
I have a PR for this, however I'm not sure if we should allow a list as requested or add a 'BOTH' keyword.
We'll see what comes out of review
> Stellar fieldValidation "IP" does not support list values
> ---------------------------------------------------------
>
> Key: METRON-424
> URL: https://issues.apache.org/jira/browse/METRON-424
> Project: Metron
> Issue Type: Bug
> Reporter: Neha Sinha
>
> Currently, stellar fieldValidation *IP* accepts only single string value.However we need the ability to specify a list of values,say, we want to validate ip_dst_addr to be of either IPV4 or IPV6 type. This feature needs to be incorporated.
> Desired Behaviour :- User should be able to configure ip validation as below :-
> GLOBAL Config: global
> {
> "es.clustername": "metron",
> "es.ip": "metron-test1-10.openstacklocal",
> "es.port": "9300",
> "es.date.format": "yyyy.MM.dd.HH",
> "fieldValidations" : [
> {
> "input" : [ "ip_dst_addr" ],
> "validation" : "IP",
> "config" : {
> "type" : ["IPV6","IPV4"]
> }
> }
> ]
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)