<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: stdlib.localLogStash - How to get mined data into logstash in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256600#M96904</link>
    <description>&lt;P&gt;Thank you so much &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109026"&gt;@KevinAS&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;I Tried trimming the format in&amp;nbsp;@indicator field.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used Dissect mapping from logstash.&amp;nbsp; [ Thanks to logstash community for suggestions]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dissect { mapping =&amp;gt; { "@indicator" =&amp;gt; "%{@indicator}-%{}" } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This gave me&amp;nbsp;@indicator field with single CIDR format .&amp;nbsp; but I Think it wont convert range of IP into many CIDR on that range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for example :&amp;nbsp; I think this trimming will give only&amp;nbsp;&amp;nbsp;@indicator =&amp;nbsp;192.52.43.112 in the place of&amp;nbsp;@indicator =&amp;nbsp;196.52.43.112-196.52.43.255.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will try your python script alteration as well.&amp;nbsp; that makes more sense though complex. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here is my final Logstash config that trimmed the IP range into single IP CIDR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input {&lt;BR /&gt;tcp {&lt;BR /&gt;port =&amp;gt; 5514&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;filter {&lt;BR /&gt;# Tag minemeld events&lt;BR /&gt;if "@origin" in [message] {&lt;BR /&gt;mutate {&lt;BR /&gt;add_tag =&amp;gt; "minemeld"&lt;BR /&gt;}&lt;BR /&gt;json {&lt;BR /&gt;source =&amp;gt; "message"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;#dissecting IPV4 into CIDR format&lt;BR /&gt;if "IPv4" in [type] {&lt;BR /&gt;dissect {&lt;BR /&gt;mapping =&amp;gt; { "@indicator" =&amp;gt; "%{@indicator}-%{}" }&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;output {&lt;BR /&gt;elasticsearch {&lt;BR /&gt;hosts =&amp;gt; "&lt;A href="http://192.168.56.10:9200" target="_blank" rel="noopener"&gt;http://192.168.56.10:9200&lt;/A&gt;"&lt;BR /&gt;index =&amp;gt; "logstash-threatintel-%{+YYYY.MM.dd}"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 14:37:30 GMT</pubDate>
    <dc:creator>harankumar_hk</dc:creator>
    <dc:date>2019-04-08T14:37:30Z</dc:date>
    <item>
      <title>stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/254898#M96896</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set up few IP miners and then processing through a inbound aggregator and then giving it to Logstash output,&lt;/P&gt;&lt;P&gt;Names have been customised as I have cloned the aggregator and output from existing prototypes.&lt;/P&gt;&lt;P&gt;&lt;A href="https://user-images.githubusercontent.com/40884455/54923828-13342400-4f46-11e9-9a20-8618151f3896.png" target="_blank" rel="noopener noreferrer"&gt;&lt;IMG src="https://ip1.i.lithium.com/f232a2b24ac44feff3b97a5054bc7443b207a307/68747470733a2f2f757365722d696d616765732e67697468756275736572636f6e74656e742e636f6d2f34303838343435352f35343932333832382d31333334323430302d346634362d313165392d396132302d3836313831353166333839362e706e67" border="0" alt="image" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not seeing any indicators in DARP-output [stdlib.localLogStash] . is it normal ? and can some one help me with logstash configuration for getting these indicators into a file.&lt;/P&gt;&lt;P&gt;i tried this logstash config&amp;nbsp; but no success. dont know what i am missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#logstash configuration:&lt;BR /&gt;input {&lt;BR /&gt;tcp {&lt;BR /&gt;port =&amp;gt; 5514&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;output {&lt;BR /&gt;file {&lt;BR /&gt;path =&amp;gt;/etc/logstash/minemeld-output.txt&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Immight be missing something from minemeld or logstash end.&amp;nbsp; kind help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:56:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/254898#M96896</guid>
      <dc:creator>harankumar_hk</dc:creator>
      <dc:date>2019-03-25T13:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/255885#M96897</link>
      <description>&lt;P&gt;Hello Community - Can someone help me with my above query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the best way used for getting minemeld data into elasticsearch.&amp;nbsp; ?&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 03 Apr 2019 09:26:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/255885#M96897</guid>
      <dc:creator>harankumar_hk</dc:creator>
      <dc:date>2019-04-03T09:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256324#M96898</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've yet to dig deeper but I've managed to get this working and feed into Elasticsearch via Logstash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything you've got setup looks fine however one thing I found is that as soon as the output is set up, it will send the bulk of the output therefore if you've not yet set up the logstash listener, then you will miss the events come into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to remove and re-add the output so I could pick up the indicators.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once added, I was able to see the data however everything was in the 'message' field in a JSON format so added in a filter within logstash as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filter {

  # Tag minemeld events
  if "@origin" in [message] {
    mutate {
      add_tag =&amp;gt; "minemeld"
    }
    json {
      source =&amp;gt; "message"
    }
  }

} &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if you get this working as I can't see much info on this either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:13:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256324#M96898</guid>
      <dc:creator>KevinAS</dc:creator>
      <dc:date>2019-04-05T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256437#M96899</link>
      <description>&lt;P&gt;Thanks kev.&amp;nbsp; &amp;nbsp;I deleted logstash output in minemeld and reconfigured.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I get&amp;nbsp;&lt;STRONG&gt;Unrecognized SSL message error&lt;/STRONG&gt; while running logstash.&amp;nbsp; is it because that I configured self signed cert in minemeld server ??&lt;/P&gt;&lt;P&gt;can you help me fixing this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 12:45:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256437#M96899</guid>
      <dc:creator>harankumar_hk</dc:creator>
      <dc:date>2019-04-06T12:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256500#M96900</link>
      <description>&lt;P&gt;You are awesom&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109026"&gt;@KevinAS&lt;/a&gt;&amp;nbsp; &amp;nbsp; - Thank you.&amp;nbsp; I am successfully getting minemeld IOC into elasticsearch.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you help me with one more query.&amp;nbsp; Currently the indicators are getting parsed as range types.&amp;nbsp; how can we get it as a single IP range.&amp;nbsp; &amp;nbsp;Is it something we can configure in minemeld&amp;nbsp; or is there a way to trim the indicator field in logstash ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your help would be really useful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ip range.JPG" style="width: 606px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/19482i28805B7B05D35FF2/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="ip range.JPG" alt="ip range.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 08:44:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256500#M96900</guid>
      <dc:creator>harankumar_hk</dc:creator>
      <dc:date>2019-04-07T08:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256504#M96901</link>
      <description>Hey,&lt;BR /&gt;&lt;BR /&gt;Glad to hear you got it working!&lt;BR /&gt;&lt;BR /&gt;I'm working on the same problem. Ideally I'm looking to get this in a CIDR format but unsure on where to configure this whether it be on the processor stage or the logstash output. Also I'm trying to achieve this at the minemeld stage instead of using logstash filters.&lt;BR /&gt;&lt;BR /&gt;If anyone else can help on this part, would be helping us both out.&lt;BR /&gt;&lt;BR /&gt;In the meantime, I'll keep looking.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Kev</description>
      <pubDate>Sun, 07 Apr 2019 10:20:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256504#M96901</guid>
      <dc:creator>KevinAS</dc:creator>
      <dc:date>2019-04-07T10:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256522#M96903</link>
      <description>&lt;P&gt;Previous post got removed, not sure where it went.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Managed to get this working after some additional lines in one of the files. Not the greatest fix but it does the job for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Had to edit the following logstash.py file (path dependent on install location)&lt;/P&gt;&lt;PRE&gt;/opt/minemeld/engine/core/minemeld/ft/logstash.py&lt;/PRE&gt;&lt;P&gt;Need to add an import into the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;PRE&gt;import logging
import ujson
import datetime
import socket&lt;/PRE&gt;&lt;P&gt;After:&lt;/P&gt;&lt;PRE&gt;import logging
import ujson
import datetime
import socket
import netaddr&lt;/PRE&gt;&lt;P&gt;Then some additional lines under the indicators section&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;PRE&gt;if indicator is not None:
    fields['@indicator'] = indicator&lt;/PRE&gt;&lt;P&gt;After:&lt;/P&gt;&lt;PRE&gt;if indicator is not None:
    fields['@indicator'] = indicator
    if len(indicator.split('-')) == 2:
        startIP = indicator.split('-')[0]
        endIP = indicator.split('-')[1]
        cidr = netaddr.iprange_to_cidrs(startIP, endIP)[0]
        fields['CIDR'] = str(cidr)&lt;/PRE&gt;&lt;P&gt;This will produce a new field called 'CIDR'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone knows an alternative/cleaner method to achieve this, please share!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 20:03:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256522#M96903</guid>
      <dc:creator>KevinAS</dc:creator>
      <dc:date>2019-04-07T20:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256600#M96904</link>
      <description>&lt;P&gt;Thank you so much &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109026"&gt;@KevinAS&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;I Tried trimming the format in&amp;nbsp;@indicator field.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used Dissect mapping from logstash.&amp;nbsp; [ Thanks to logstash community for suggestions]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dissect { mapping =&amp;gt; { "@indicator" =&amp;gt; "%{@indicator}-%{}" } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This gave me&amp;nbsp;@indicator field with single CIDR format .&amp;nbsp; but I Think it wont convert range of IP into many CIDR on that range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for example :&amp;nbsp; I think this trimming will give only&amp;nbsp;&amp;nbsp;@indicator =&amp;nbsp;192.52.43.112 in the place of&amp;nbsp;@indicator =&amp;nbsp;196.52.43.112-196.52.43.255.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will try your python script alteration as well.&amp;nbsp; that makes more sense though complex. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here is my final Logstash config that trimmed the IP range into single IP CIDR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input {&lt;BR /&gt;tcp {&lt;BR /&gt;port =&amp;gt; 5514&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;filter {&lt;BR /&gt;# Tag minemeld events&lt;BR /&gt;if "@origin" in [message] {&lt;BR /&gt;mutate {&lt;BR /&gt;add_tag =&amp;gt; "minemeld"&lt;BR /&gt;}&lt;BR /&gt;json {&lt;BR /&gt;source =&amp;gt; "message"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;#dissecting IPV4 into CIDR format&lt;BR /&gt;if "IPv4" in [type] {&lt;BR /&gt;dissect {&lt;BR /&gt;mapping =&amp;gt; { "@indicator" =&amp;gt; "%{@indicator}-%{}" }&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;output {&lt;BR /&gt;elasticsearch {&lt;BR /&gt;hosts =&amp;gt; "&lt;A href="http://192.168.56.10:9200" target="_blank" rel="noopener"&gt;http://192.168.56.10:9200&lt;/A&gt;"&lt;BR /&gt;index =&amp;gt; "logstash-threatintel-%{+YYYY.MM.dd}"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 14:37:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256600#M96904</guid>
      <dc:creator>harankumar_hk</dc:creator>
      <dc:date>2019-04-08T14:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256627#M96905</link>
      <description>&lt;P&gt;Nice one! Yeah, I've been looking into this further today. I found that I don't really need the CIDR format as I can pull out the two IP addresses within the indicator and checking to see if an IP is within its range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following configured for minemeld&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;input {
  tcp {
    port =&amp;gt; "1516"
    tags =&amp;gt; [ "syslog" ]
  }
}

filter {

  if "@origin" in [message] {
    mutate {
      add_tag =&amp;gt; "minemeld"
    }
    json {
      source =&amp;gt; "message"
    }

    fingerprint {
        source =&amp;gt; "@indicator"
        target =&amp;gt; "[@metadata][fingerprint]"
        method =&amp;gt; "MURMUR3"
    }

    dissect {
        mapping =&amp;gt; { "@indicator" =&amp;gt; "%{firstIP}-%{lastIP}" }
    }
  }
}

output {

  if "minemeld" in [tags] and [message] == "withdraw" {
    elasticsearch {
      hosts =&amp;gt; ["localhost:9200"]
      index =&amp;gt; "minemeld"
      action =&amp;gt; "delete"
      document_id =&amp;gt; "%{[@metadata][fingerprint]}"
    }
  } else if "minemeld" in [tags] {
    elasticsearch {
      hosts =&amp;gt; ["localhost:9200"]
      index =&amp;gt; "minemeld"
      document_id =&amp;gt; "%{[@metadata][fingerprint]}"
    }
  }

}&lt;/PRE&gt;&lt;P&gt;This will allow the list to stay updated within Elasticsearch with any "withdraw" events being deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm then able to query this data from other inputs such as firewalls as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filter {
    elasticsearch {
        hosts =&amp;gt; ["localhost:9200"]
        index =&amp;gt; "minemeld"
        query_template =&amp;gt; "/usr/share/logstash/search-minemeld-src.json"
        fields =&amp;gt; {
            "sources" =&amp;gt; "minemeld_source"
            "confidence" =&amp;gt; "minemeld_confidence"
        }
        add_tag =&amp;gt; [ "minemeld_trigger_src" ]
    }
}&lt;/PRE&gt;&lt;P&gt;I then have the following within /usr/share/logstash/search-minemeld-src.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "size": 1,
  "query": {
    "bool": {
      "filter": [
        { "range": { "firstIP": { "lte": "%{[src_ip]}" }}} ,
        { "range": { "lastIP": { "gte": "%{[src_ip]}" }}}
      ]
    }
  },
  "_source": ["sources", "confidence"]
}&lt;/PRE&gt;&lt;P&gt;So for events that hit this filter (firewall traffic), the "src_ip" is checked against the minemeld index and checks if the IP address exists within each range. This then adds new fields to the firewall traffic (sources/confidence) and adds a new tag (minemeld_trigger_src). Seems to work the way I'm wanting it to, not sure if its of any use to yourself or anyone else. May give you some additional insight however.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 16:31:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/256627#M96905</guid>
      <dc:creator>KevinAS</dc:creator>
      <dc:date>2019-04-08T16:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/257366#M96906</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109026"&gt;@KevinAS&lt;/a&gt;&amp;nbsp; &amp;nbsp;Great ! This is exactly my use case.&amp;nbsp; I have some cl;arification with below method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is&amp;nbsp;&lt;SPAN&gt;/usr/share/logstash/search-minemeld-src.json.&amp;nbsp; should i create a&amp;nbsp;search-minemeld-src.json with below content . I went through documenattion and understood some basics. but&amp;nbsp; your explanation would be useful&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also&amp;nbsp; below filter.&amp;nbsp; Will this give the range or just take the indicator value as first IP - last Ip [only two IPs]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dissect {
        mapping =&amp;gt; { "@indicator" =&amp;gt; "%{firstIP}-%{lastIP}" }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Haran&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 07:24:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/257366#M96906</guid>
      <dc:creator>harankumar_hk</dc:creator>
      <dc:date>2019-04-12T07:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/257432#M96907</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, you'll need to create the file /usr/share/logstash/search-minemeld-src.json with the content mentioned in my previous reply.&lt;/P&gt;&lt;P&gt;My understanding of this was the "src_ip" would be checked against the "firstIP" and "lastIP" fields within the minemeld index. If the "src_ip" is lower than or equal to the "firstIP" AND&amp;nbsp; if the "src_ip" is greater than or equal to the "lastIP", it would take its "sources" and "confidence" values (from the event in the minemeld index) and copy these to the event that its matched.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dissect section essentially is splitting up the indicator into two separate fields (firstIP and lastIP).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the above method, we don't need to know the CIDR address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:18:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/257432#M96907</guid>
      <dc:creator>KevinAS</dc:creator>
      <dc:date>2019-04-12T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: stdlib.localLogStash - How to get mined data into logstash</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/257531#M96908</link>
      <description>&lt;P&gt;Great&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/109026"&gt;@KevinAS&lt;/a&gt;&amp;nbsp; &amp;nbsp;. Thanks again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am documenting the Minemeld integration and use cases with elastic search . Thinking to take it with Community via either blog post or Github.&amp;nbsp; &amp;nbsp;You deserve a big credit for the Logstash configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know your interst and email ID.&amp;nbsp; &amp;nbsp;would like to connect with you and add you for credits for the github/documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am available @&amp;nbsp; harankumar92@gmail.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haran&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 06:36:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/stdlib-locallogstash-how-to-get-mined-data-into-logstash/m-p/257531#M96908</guid>
      <dc:creator>harankumar_hk</dc:creator>
      <dc:date>2019-04-13T06:36:43Z</dc:date>
    </item>
  </channel>
</rss>

