- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-06-2020 06:59 AM
Just in case anyone is looking for a miner to mine for Google IP address, here is a sample miner
age_out
default: null
interval: 257
sudden_death: true
attributes
confidence: 100
share_level: green
type: IPv4
extractor prefixes[]
indicator ipv4Prefix
prefix google
source_name google.range
url https://www.gstatic.com/ipranges/goog.json
age_out
default: null
interval: 257
sudden_death: true
attributes
confidence: 100
share_level: green
type: IPv4
extractor prefixes[]
indicator ipv4Prefix
prefix google
source_name google.cloud
url https://www.gstatic.com/ipranges/cloud.json
04-06-2021 01:42 PM
I'm novice to configuring minemeld, do you have the full layout of the configuration, such as output and processor used?
any guidance is appreciated.
Thanks.
04-08-2021 11:21 AM
Thanks. I figured it out..
Because it is a Json format i copied the existing miner prototype, aws.AMAZON, which uses the CLASS, minemeld.ft.json.SimpleJSON.
original strings are;
age_out:
default: null
interval: 257
sudden_death: true
attributes:
confidence: 100
share_level: green
type: IPv4
extractor: prefixes[?service=='AMAZON']
fields:
- region
- service
indicator: ip_prefix
prefix: aws
source_name: aws.AMAZON
url: https://ip-ranges.amazonaws.com/ip-ranges.json
****
Per the previous suggestion, I replaced the following
extractor: prefixes[] <<< changed
fields: <<< removed
- region <<< removed
- service <<< removed
indicator: ipv4Prefix <<< changed
prefix: google <<< changed
source_name: google.cloud <<< changed
url: https://www.gstatic.com/ipranges/cloud.json <<<<<< changed
As for the aggregator, I created a new prototype from stdlib.aggregatorIPv4Generic and removed the following unnecessary lines;
- actions:
- drop
name: drop all
whitelist_prefixes:
- wl
For the output, I created a new prototype from stdlib.feedHCGreen and removed the following unnecessary lines;
conditions:
- confidence > 75
- share_level == 'green'
name: accept confidence > 75 and share level green
- actions:
- drop
name: drop all
Hope this helps.
-DR
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!