summaryrefslogtreecommitdiff
path: root/README
blob: 55c37f98297b1d40350eef7bff7b520d46a4db4c (plain) (blame)
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
32
33
34
35
If you use it on a fresh install, with a non existant DB, you have to build it :

curl -XPUT http://YOURSERVER:9200/YOURINDEX/ -d '
{
 "settings":
 {
  "events":
  {
   "mappings":
   {
    "@source":
     {"type":"string"},
    "@source_host":
     {"type":"string"},
    "@source_path":
     {"type":"string"},
    "@timestamp":
     {"type":"date"},
    "@tags":
     {"type":"string"},
    "@message":
     {"type":"string"},
    "@fields":
    {
     "type":"object",
     "properties":
     {
      "HOSTNAME":
       {"type":"string"}
     }
    }
   }
  }
 }
}'