Changes between Version 3 and Version 4 of waue/2009/SEC_to_ICAS


Ignore:
Timestamp:
Aug 4, 2009, 6:15:43 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/SEC_to_ICAS

    v3 v4  
    199199                        String source_ip = getip(str[11]);
    200200                        String dest_ip = getip(str[12]);
    201                         String fkey = dest_ip + "<=" + str[3];
     201                        String fkey = dest_ip ;
    202202
    203203                        String date = str[5] + "/" + str[6] + "/" + str[7] + "_" + str[8]
    204204                                        + ":" + str[9] + ":" + str[10];
    205                         // source @ date @ sig @ class @ type
    206                         String fvalue = source_ip + "@" + date + "@" +"@" +str[4]
     205                        // source @ date @ sig @ sig @ class @ type
     206                        String fvalue = source_ip + "@" + date + "@" + "str[3]" +"@" +str[4]
    207207                              + "@"+ str[13];
    208208                        output.collect(new Text(fkey), new Text(fvalue));
     
    249249                        BatchUpdate map = new BatchUpdate(key.toString());
    250250                        // map.setTimestamp(timestamp);
    251                         map.put("infor:source_ip", Bytes.toBytes(source_ip));
     251                        map.put("signature:", Bytes.toBytes(signature));
     252                        map.put("source_ip:", Bytes.toBytes(source_ip));
    252253                        map.put("infor:date", Bytes.toBytes(date));
    253254                        map.put("infor:class", Bytes.toBytes(sig_class));