Problem creating JSON miner to pull feed without listed extractor

Reply
Highlighted
L0 Member

Problem creating JSON miner to pull feed without listed extractor

I am trying to pull a JSON feed that in CURL looks like this:

 

[
    {
        "dhcphost_id": "105",
        "dhcplease_end_time": "0",
        "dhcplease_id": "0",
        "errno": "0",
        "ip_addr": "52a6203e",
        "ip_alias": "test.test.com,
        "type": "ip"
    },
    {
        "errno": "0",
        "type": "ip",
        "ip_addr": "52a62038",
        "name": "test2.test.com",
    }
]

 Each {} is a different device that i then want to use a few fields from each device (such as ip_addr, name) within minemeld. 

 

I am having problems creating the extractor/indicator combination though. Currently, I either have it fail to restart, or it comes back saying the list object has no items.

 

I used one of the existing JSON miners to modify for this miner, so the class is minemeld.ft.json.SimpleJSON 

 

Any suggestions?

 

Thanks!

..
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 Live Community as a whole!

The Live Community thanks you for your participation!