Skip to content

Commit

Permalink
Merge pull request #11 from PcComponentes/add-http-support-in-template
Browse files Browse the repository at this point in the history
Add HTTP support in filebeat template and delete unused fields
  • Loading branch information
AaronBernabeu authored Apr 16, 2020
2 parents 0391b66 + 21e3028 commit 11a4152
Showing 1 changed file with 54 additions and 95 deletions.
149 changes: 54 additions & 95 deletions src/Util/Filebeat/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,11 @@
"@timestamp": {
"type": "date"
},
"beat": {
"properties": {
"hostname": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"version": {
"type": "keyword"
}
}
},
"channel": {
"type": "keyword"
},
"context": {
"properties": {
"class": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"code": {
"type": "integer"
},
"command": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"exception": {
"properties": {
"class": {
Expand Down Expand Up @@ -86,9 +52,6 @@
"message": {
"type": "text"
},
"method": {
"type": "keyword"
},
"name": {
"type": "text",
"fields": {
Expand All @@ -98,42 +61,62 @@
}
}
},
"request_uri": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"route": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"route_parameters": {
"properties": {
"_controller": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
"http": {
"client" : {
"properties" : {
"agent" : {
"type" : "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"address" : {
"type" : "ip"
}
},
"_route": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
},
"request" : {
"properties" : {
"scheme" : {
"type" : "keyword",
"ignore_above" : 10
},
"protocol" : {
"type" : "keyword",
"ignore_above" : 1024
},
"method" : {
"type" : "keyword",
"ignore_above" : 10
},
"host" : {
"type" : "keyword",
"ignore_above" : 1024
},
"uri" : {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"payload" : {
"type" : "text"
}
}
},
"response" : {
"properties" : {
"code" : {
"type" : "integer"
},
"payload" : {
"type" : "text"
}
}
}
Expand All @@ -153,16 +136,6 @@
}
}
},
"error": {
"properties": {
"message": {
"type": "text"
},
"type": {
"type": "text"
}
}
},
"extra": {
"properties": {
"aggregate_id": {
Expand Down Expand Up @@ -225,20 +198,6 @@
}
}
},
"host": {
"properties": {
"name": {
"type": "keyword"
}
}
},
"input": {
"properties": {
"type": {
"type": "keyword"
}
}
},
"level": {
"type": "short"
},
Expand All @@ -259,4 +218,4 @@
}
}
}
}
}

0 comments on commit 11a4152

Please sign in to comment.