File size: 1,387 Bytes
346127e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  "template": {
    "settings": {
      "number_of_replicas": 0,
      "number_of_shards": 1
    },
    "mappings": {
      "date_detection": false,
      "dynamic_templates": [
        { "strings_as_keyword": {
            "match_mapping_type": "string",
            "mapping": { "type": "keyword", "ignore_above": 8192 } } }
      ],
      "properties": {
        "@timestamp":               { "type": "date" },
        "source":       { "properties": { "ip": {"type":"ip"}, "port": {"type":"long"}, "bytes": {"type":"long"} } },
        "destination":  { "properties": { "ip": {"type":"ip"}, "port": {"type":"long"}, "bytes": {"type":"long"} } },
        "host":         { "properties": { "ip": {"type":"ip"}, "name": {"type":"keyword"} } },
        "process":      { "properties": {
                            "pid": {"type":"long"}, "parent": {"properties": {"pid":{"type":"long"}}},
                            "command_line": {"type":"wildcard"},
                            "args": {"type":"keyword"} } },
        "message":      { "type": "match_only_text" },
        "url":          { "properties": { "original": {"type":"wildcard"}, "path": {"type":"wildcard"} } },
        "user_agent":   { "properties": { "original": {"type":"wildcard"} } },
        "dns":          { "properties": { "question": { "properties": { "name": {"type":"wildcard"} } } } }
      }
    }
  }
}