[ 
https://issues.apache.org/jira/browse/METRON-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16255947#comment-16255947
 ] 

ASF GitHub Bot commented on METRON-1294:
----------------------------------------

Github user justinleet commented on the issue:

    https://github.com/apache/metron/pull/827
  
    For the search, I ran,
    ```
    curl -X POST --header 'Content-Type: application/json' --header 'Accept: 
application/json' -d '{
      "facetFields": [
        "ip_src_addr"
      ],
      "fields": [
        "guid", "ip_src_addr"
      ],
      "from": 0,
      "indices": [
        "bro"
      ],
      "query": "*",
      "size": 5
    }' 'http://node1:8082/api/v1/search/search'
    ```
    
    and returned 
    
    ```
    ...// Search results
      "facetCounts": {
        "ip_src_addr": {
          "192.168.138.158": 5861,
          "192.168.66.1": 2439
        }
      }
    ```
    
    @merrimanr The problem before was that those weren't in string format 
right?  This is what's expected with fix?


> IP addresses are not formatted correctly in facet and group results
> -------------------------------------------------------------------
>
>                 Key: METRON-1294
>                 URL: https://issues.apache.org/jira/browse/METRON-1294
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Ryan Merriman
>            Assignee: Ryan Merriman
>
> Fields that are of type IP address are being returned in numerical format 
> whereas they should be returned in string format.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to