You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metron.apache.org by mmiklavc <gi...@git.apache.org> on 2017/02/08 21:26:46 UTC

[GitHub] incubator-metron issue #445: METRON-706: Add Stellar transformations and fil...

Github user mmiklavc commented on the issue:

    https://github.com/apache/incubator-metron/pull/445
  
    Note: Per the recent issue in master with Ansible, I tested the following as well
    
    * Create threat_ip.csv
    ```
    #
    # Licensed to the Apache Software Foundation (ASF) under one or more
    # contributor license agreements.  See the NOTICE file distributed with
    # this work for additional information regarding copyright ownership.
    # The ASF licenses this file to You under the Apache License, Version 2.0
    # (the "License"); you may not use this file except in compliance with
    # the License.  You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    #Add single column of ip address to alert
    #Public lists are available on the internet
    # example:
    23.113.113.105
    24.107.205.249
    24.108.62.255
    24.224.153.71
    27.4.1.212
    27.131.149.102
    31.24.30.31
    31.131.251.33
    31.186.99.250
    31.192.209.119
    31.192.209.150
    31.200.244.17
    37.34.52.185
    37.58.112.101
    37.99.146.27
    37.128.132.96
    37.140.195.177
    37.140.199.100
    ```
    
    * Uploaded threat_ip.csv to HDFS:
    ```
    hdfs dfs -put -f threat_ip.csv
    ```
    
    * Create extractor.json
    ```
    {
      "config": {
        "columns": {
          "ip": 0
        },
        "indicator_column": "ip",
        "type" : "malicious_ip",
        "separator": ","
      },
      "extractor": "CSV"
    }
    ```
    
    * Run as root user from /root
    ```
    echo "truncate 'threatintel'" | hbase shell && /usr/metron/0.3.0/bin/flatfile_loader.sh -c t -t threatintel -e extractor.json -i /user/root -m MR
    ```
    
    * Verify the records are there
    ```
    echo "scan 'threatintel'" | hbase shell
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---