- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-16-2018 08:27 AM
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
05-16-2018 08:49 AM
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
05-16-2018 08:49 AM
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
05-17-2018 12:01 AM
Hi,
Thanks again, it works perfectly!
I surely need to develop this aspect.
Regards
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!