Zscaler and Minemeld v2

cancel
Showing results for 
Search instead for 
Did you mean: 

Zscaler and Minemeld v2

L1 Bithead

Hello,

 

I'm trying to get simple data from https://ips.zscaler.net/pac/json. I tried to exploit the extractor with http://jmespath.org/ but really, I don't think I need an extractor here, just indicator "ip".

But it doesn't work :

age_out:
    default: null
    interval: 257
    sudden_death: true
attributes:
    confidence: 100
    share_level: green
    type: IPv4
indicator: ip
prefix: zs
source_name: zscaler
url: https://ips.zscaler.net/pac/json

Could you please help me solve this issue?

 

Thank you

 

 

 

Regards

 

1 ACCEPTED SOLUTION

Accepted Solutions

L5 Sessionator

Hi @lvmh_onenetwork,

 

in this case you need a JMESPath expression that converts a plain list of values into an array of objects.

 

Try this one:

age_out:
    default: null
    interval: 257
    sudden_death: true
attributes:
    confidence: 100
    share_level: green
    type: IPv4
extractor: 'ip[].{"indicator":@}'
prefix: zs
source_name: zscaler
url: https://ips.zscaler.net/pac/json

View solution in original post

2 REPLIES 2

L5 Sessionator

Hi @lvmh_onenetwork,

 

in this case you need a JMESPath expression that converts a plain list of values into an array of objects.

 

Try this one:

age_out:
    default: null
    interval: 257
    sudden_death: true
attributes:
    confidence: 100
    share_level: green
    type: IPv4
extractor: 'ip[].{"indicator":@}'
prefix: zs
source_name: zscaler
url: https://ips.zscaler.net/pac/json

Hi,

 

Thanks again, it works perfectly!

I surely need to develop this aspect.

 

Regards

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!