Commit 122287a2 authored by testserver's avatar testserver

update config

parent 5aad62d9
...@@ -11,9 +11,7 @@ services: ...@@ -11,9 +11,7 @@ services:
source: ./elasticsearch/config/elasticsearch.yml source: ./elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true read_only: true
- type: volume - "./elasticsearch/data:/usr/share/elasticsearch/data"
source: elasticsearch
target: /usr/share/elasticsearch/data
ports: ports:
- "$ES_PORT1:9200" - "$ES_PORT1:9200"
- "$ES_PORT2:9300" - "$ES_PORT2:9300"
...@@ -76,5 +74,6 @@ networks: ...@@ -76,5 +74,6 @@ networks:
elk: elk:
driver: bridge driver: bridge
volumes: #volumes:
elasticsearch: # elasticsearch:
# driver: local
...@@ -10,14 +10,14 @@ function setDefaultIndex() { ...@@ -10,14 +10,14 @@ function setDefaultIndex() {
curl --location --request POST "http://$kibana_host/api/kibana/settings" \ curl --location --request POST "http://$kibana_host/api/kibana/settings" \
--header 'kbn-version: 7.12.0' \ --header 'kbn-version: 7.12.0' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw "{\"changes\":{\"defaultIndex\":\"$1\"}}" --data "{\"changes\":{\"defaultIndex\":\"$1\"}}"
} }
function addILMPolicy() { function addILMPolicy() {
resp=$( resp=$(
curl -s -XPUT "http://$es_host/_ilm/policy/service-log" \ curl -s -XPUT "http://$es_host/_ilm/policy/service-log" \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw '{"policy":{"phases":{"hot":{"min_age":"0ms","actions":{"set_priority":{"priority":100}}},"delete":{"min_age":"365d","actions":{"delete":{"delete_searchable_snapshot":true}}}}}}' --data '{"policy":{"phases":{"hot":{"min_age":"0ms","actions":{"set_priority":{"priority":100}}},"delete":{"min_age":"90d","actions":{"delete":{"delete_searchable_snapshot":true}}}}}}'
) )
echo "$resp" echo "$resp"
if contain "$resp" '{"acknowledged":true}'; then if contain "$resp" '{"acknowledged":true}'; then
...@@ -31,7 +31,7 @@ function addIndexTemplate() { ...@@ -31,7 +31,7 @@ function addIndexTemplate() {
resp=$( resp=$(
curl -s -XPUT "http://$es_host/_index_template/service-log" \ curl -s -XPUT "http://$es_host/_index_template/service-log" \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw '{"template":{"settings":{"index":{"lifecycle":{"name":"service-log"}}},"mappings":{"_source":{"excludes":[],"includes":[],"enabled":true},"_routing":{"required":false},"dynamic":true,"numeric_detection":false,"date_detection":true,"dynamic_date_formats":["strict_date_optional_time","yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"],"dynamic_templates":[]}},"index_patterns":["*-service-*"]}' --data '{"priority":0,"template":{"settings":{"index":{"lifecycle":{"name":"service-log"},"number_of_shards":"1","number_of_replicas":"0"}},"mappings":{"_routing":{"required":false},"numeric_detection":false,"dynamic_date_formats":["strict_date_optional_time","yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"],"_source":{"excludes":[],"includes":[],"enabled":true},"dynamic":true,"dynamic_templates":[],"date_detection":true}},"index_patterns":["*-service-*","*backend*","*chian*","*exdb*","*external*","*other*","*supervisor*","*tanxin*"],"composed_of":[]}'
) )
echo "$resp" echo "$resp"
if contain "$resp" '{"acknowledged":true}'; then if contain "$resp" '{"acknowledged":true}'; then
......
{"attributes":{"buildNum":39309,"dateFormat":"YYYY-MM-DD HH:mm:ss.SSS","dateFormat:dow":"Monday","dateFormat:tz":"Asia/Shanghai","dateNanosFormat":"YYYY-MM-DD HH:mm:ss.SSSSSSSSS","defaultColumns":["message"],"defaultIndex":"3dd09b40-b302-11eb-8677-fd4740a7c42a"},"coreMigrationVersion":"7.12.0","id":"7.12.0","migrationVersion":{"config":"7.12.0"},"references":[],"type":"config","updated_at":"2021-07-02T05:10:07.453Z","version":"Wzc3NjUxLDExXQ=="} {"attributes":{"fieldAttrs":"{\"message\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*gateway*"},"coreMigrationVersion":"7.12.0","id":"08f1a5f0-360a-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,7],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNTgsNl0="}
{"attributes":{"fieldAttrs":"{}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"role-service*"},"coreMigrationVersion":"7.12.0","id":"a26fc570-b6d7-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-05-17T06:18:02.439Z","version":"WzYwMjE4LDExXQ=="} {"attributes":{"fieldAttrs":"{}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*test*backend*"},"coreMigrationVersion":"7.12.0","id":"0bedebd0-ef86-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,8],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNTksNl0="}
{"attributes":{"fieldAttrs":"{}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"notify-service-v1*"},"coreMigrationVersion":"7.12.0","id":"cf0150c0-bf9e-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-05-28T10:23:56.364Z","version":"WzY0Mjc1LDExXQ=="} {"attributes":{"fieldAttrs":"{\"json.level\":{\"count\":1},\"service.name\":{\"count\":2},\"json.content\":{\"count\":1},\"json.content.keyword\":{\"count\":3},\"message\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*tanxin*mingzong*oa*"},"coreMigrationVersion":"7.12.0","id":"0f1c07a0-360e-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,9],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjAsNl0="}
{"attributes":{"fieldAttrs":"{\"service.version\":{\"count\":2}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"others*"},"coreMigrationVersion":"7.12.0","id":"cb829560-b3d9-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-05-31T02:53:05.046Z","version":"WzcxMjI4LDExXQ=="} {"attributes":{"fieldAttrs":"{\"json.span\":{\"count\":2},\"json.level\":{\"count\":2},\"@timestamp\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*production*backend*"},"coreMigrationVersion":"7.12.0","id":"189c04b0-ef8c-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,10],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjEsNl0="}
{"attributes":{"fieldAttrs":"{\"json.content\":{\"count\":13},\"json.duration\":{\"count\":7},\"json.level\":{\"count\":5},\"json.span\":{\"count\":4},\"json.trace\":{\"count\":4},\"log.file.path\":{\"count\":4},\"message\":{\"count\":10},\"service.name\":{\"count\":1},\"service.version\":{\"count\":2}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*-service*"},"coreMigrationVersion":"7.12.0","id":"3dd09b40-b302-11eb-8677-fd4740a7c42a","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-06-22T02:40:13.017Z","version":"Wzc1ODg4LDExXQ=="} {"attributes":{"fieldAttrs":"{\"@timestamp\":{\"count\":6},\"message\":{\"count\":6}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*test*"},"coreMigrationVersion":"7.12.0","id":"2662e5c0-90a2-11ec-944f-3b9c0870026c","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1647487706520,59],"type":"index-pattern","updated_at":"2022-03-17T03:28:26.520Z","version":"WzYzMTIsNl0="}
{"attributes":{"fieldAttrs":"{\"json.content\":{\"count\":2},\"message\":{\"count\":11},\"_id\":{\"count\":8},\"_type\":{\"count\":1},\"json.level\":{\"count\":6}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"trace-service-v2*"},"coreMigrationVersion":"7.12.0","id":"d2394ae0-c1ba-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-06-30T07:33:22.471Z","version":"Wzc2OTk3LDExXQ=="} {"attributes":{"fieldAttrs":"{}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*demo*externaldb*"},"coreMigrationVersion":"7.12.0","id":"26830990-2cd9-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,11],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjIsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"auth-service-v1*"},"coreMigrationVersion":"7.12.0","id":"66aa7500-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:20.432Z","version":"Wzc3NTQ2LDExXQ=="} {"attributes":{"fieldAttrs":"{\"json.level\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*demo*"},"coreMigrationVersion":"7.12.0","id":"2a4c18f0-00ba-11ec-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645181955089,32],"type":"index-pattern","updated_at":"2022-02-18T10:59:15.089Z","version":"WzYyODUsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"*-service-v1*"},"coreMigrationVersion":"7.12.0","id":"65763ac0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:18.412Z","version":"Wzc3NTQyLDExXQ=="} {"attributes":{"fieldAttrs":"{\"json.level\":{\"count\":1},\"message\":{\"count\":2}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*tanxin*mingzong*talk*"},"coreMigrationVersion":"7.12.0","id":"32d38dd0-360e-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,12],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjMsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"*-service-v2*"},"coreMigrationVersion":"7.12.0","id":"661030d0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:19.421Z","version":"Wzc3NTQ0LDExXQ=="} {"attributes":{"fieldAttrs":"{\"json.content\":{\"count\":1},\"json.span\":{\"count\":1},\"message\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*demo*backend*"},"coreMigrationVersion":"7.12.0","id":"3aaf5950-00ba-11ec-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,13],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjQsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"department-service-v2*"},"coreMigrationVersion":"7.12.0","id":"67441cf0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:21.439Z","version":"Wzc3NTQ4LDExXQ=="} {"attributes":{"fieldAttrs":"{}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"timestamp","title":".monitoring-es*"},"coreMigrationVersion":"7.12.0","id":"3bd9a380-1208-11ec-919b-13636c2c5db1","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,14],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjUsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"gateway-service-v2*"},"coreMigrationVersion":"7.12.0","id":"69105170-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:24.455Z","version":"Wzc3NTU0LDExXQ=="} {"attributes":{"fieldAttrs":"{\"log.file.path\":{\"count\":2},\"log.offset\":{\"count\":1},\"service.name\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*prod*person*"},"coreMigrationVersion":"7.12.0","id":"3df0eb70-30ac-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1647502604053,62],"type":"index-pattern","updated_at":"2022-03-17T07:36:44.053Z","version":"WzYzMTUsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"gateway-service-v1*"},"coreMigrationVersion":"7.12.0","id":"687c9cf0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:23.487Z","version":"Wzc3NTUyLDExXQ=="} {"attributes":{"fieldAttrs":"{\"message\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*production*externaldb*"},"coreMigrationVersion":"7.12.0","id":"48d00340-2cd9-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,15],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjYsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"process-service-v2*"},"coreMigrationVersion":"7.12.0","id":"6c104b00-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:29.489Z","version":"Wzc3NTY0LDExXQ=="} {"attributes":{"fieldAttrs":"{\"service.name\":{\"count\":2},\"log.file.path\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*prod*person*backend*"},"coreMigrationVersion":"7.12.0","id":"52e17c20-30ac-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1647485280941,57],"type":"index-pattern","updated_at":"2022-03-17T02:48:00.941Z","version":"WzYzMTAsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"file-service-v1*"},"coreMigrationVersion":"7.12.0","id":"67dc8c60-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:22.438Z","version":"Wzc3NTUwLDExXQ=="} {"attributes":{"fieldAttrs":"{\"json.span\":{\"count\":4},\"json.level\":{\"count\":3},\"message\":{\"count\":8},\"log.file.path\":{\"count\":3},\"json.trace\":{\"count\":1},\"json.content\":{\"count\":7},\"service.name\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*test*backend*v2*"},"coreMigrationVersion":"7.12.0","id":"533e9ac0-ef86-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,16],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjcsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"pay-service-v1*"},"coreMigrationVersion":"7.12.0","id":"6b7606d0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:28.477Z","version":"Wzc3NTYyLDExXQ=="} {"attributes":{"fieldAttrs":"{\"env\":{\"count\":4},\"log.file.path\":{\"count\":7}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*other*"},"coreMigrationVersion":"7.12.0","id":"6f91e2e0-ef86-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,17],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjgsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"proof-service-v1*"},"coreMigrationVersion":"7.12.0","id":"6ca9cbe0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:30.494Z","version":"Wzc3NTY2LDExXQ=="} {"attributes":{"fieldAttrs":"{\"service.name\":{\"count\":4},\"log.file.path\":{\"count\":2},\"service.program\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*prod*person*externaldb*"},"coreMigrationVersion":"7.12.0","id":"6feb1bf0-30ac-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,18],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNjksNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"swagger-service-v2*"},"coreMigrationVersion":"7.12.0","id":"6faef590-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:35.561Z","version":"Wzc3NTc0LDExXQ=="} {"attributes":{"buildNum":39309,"dateFormat":"YYYY-MM-DD HH:mm:ss.SSS","dateFormat:dow":"Monday","dateFormat:tz":"Asia/Shanghai","dateNanosFormat":"YYYY-MM-DD HH:mm:ss.SSSSSSSSS","defaultColumns":["message"],"defaultIndex":"2662e5c0-90a2-11ec-944f-3b9c0870026c"},"coreMigrationVersion":"7.12.0","id":"7.12.0","migrationVersion":{"config":"7.12.0"},"references":[],"sort":[1645178667957,29],"type":"config","updated_at":"2022-02-18T10:04:27.957Z","version":"WzYyODIsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"template-service-v2*"},"coreMigrationVersion":"7.12.0","id":"704198a0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:36.522Z","version":"Wzc3NTc2LDExXQ=="} {"attributes":{"fieldAttrs":"{\"json.content\":{\"count\":1},\"json.level\":{\"count\":1},\"message\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"json.@timestamp","title":"*test*backend*v1*"},"coreMigrationVersion":"7.12.0","id":"844b6210-21db-11ec-86c8-c7480f34ef7e","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1645176700226,19],"type":"index-pattern","updated_at":"2022-02-18T09:31:40.226Z","version":"WzYyNzAsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"swagger-service-v1*"},"coreMigrationVersion":"7.12.0","id":"6f14ff80-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:34.552Z","version":"Wzc3NTcyLDExXQ=="} {"attributes":{"fieldAttrs":"{\"message\":{\"count\":2},\"log.file.path\":{\"count\":1},\"@timestamp\":{\"count\":1},\"service.name\":{\"count\":7},\"service.program\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{}","timeFieldName":"@timestamp","title":"*production*"},"coreMigrationVersion":"7.12.0","id":"de035020-ef85-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"sort":[1646642618955,45],"type":"index-pattern","updated_at":"2022-03-07T08:43:38.955Z","version":"WzYyOTgsNl0="}
{"attributes":{"timeFieldName":"@timestamp","title":"tx-service-v1*"},"coreMigrationVersion":"7.12.0","id":"7173d710-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:38.529Z","version":"Wzc3NTgwLDExXQ=="} {"exportedCount":19,"missingRefCount":0,"missingReferences":[]}
{"attributes":{"timeFieldName":"@timestamp","title":"user-service-v1*"},"coreMigrationVersion":"7.12.0","id":"720e4250-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:39.541Z","version":"Wzc3NTgyLDExXQ=="} \ No newline at end of file
{"attributes":{"timeFieldName":"@timestamp","title":"role-service-v2*"},"coreMigrationVersion":"7.12.0","id":"6e7e8be0-daf2-11eb-bdce-75a994460910","migrationVersion":{"index-pattern":"7.11.0"},"references":[],"type":"index-pattern","updated_at":"2021-07-02T05:00:33.566Z","version":"Wzc3NTcwLDExXQ=="}
{"attributes":{"columns":["json.content","json.duration","json.level","json.span","json.trace"],"description":"","hits":0,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[{\"meta\":{\"alias\":null,\"negate\":false,\"disabled\":false,\"type\":\"exists\",\"key\":\"json.content\",\"value\":\"exists\",\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index\"},\"exists\":{\"field\":\"json.content\"},\"$state\":{\"store\":\"appState\"}}],\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\"}"},"sort":[["@timestamp","desc"]],"title":"json","version":1},"coreMigrationVersion":"7.12.0","id":"df93aa50-b30f-11eb-8677-fd4740a7c42a","migrationVersion":{"search":"7.9.3"},"references":[{"id":"3dd09b40-b302-11eb-8677-fd4740a7c42a","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"},{"id":"3dd09b40-b302-11eb-8677-fd4740a7c42a","name":"kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index","type":"index-pattern"}],"type":"search","updated_at":"2021-05-12T10:50:32.181Z","version":"WzU1NTYxLDExXQ=="}
{"exportedCount":23,"missingRefCount":0,"missingReferences":[]}
\ No newline at end of file
...@@ -11,22 +11,25 @@ input { ...@@ -11,22 +11,25 @@ input {
## Add your filters / logstash plugins configuration here ## Add your filters / logstash plugins configuration here
filter { filter {
if "lvl=dbug msg=dealBlock module=util cur=" in [message]{
drop {}
}
if "stat.log" in [log][file][path] { if "stat.log" in [log][file][path] {
drop {} drop {}
} }
if "error" in[log][file][path] { if "error" in [log][file][path] {
}else if "sync" in [log][file][path]{
}else if "chain" in [log][file][path] { }else if "chain" in [log][file][path] {
drop {} drop {}
}else if "Chain" in [log][file][path] { }else if "Chain" in [log][file][path] {
drop {} drop {}
}else if "convert" in [log][file][path]{ }else if "convert" in [log][file][path]{
if "person" in [env]{ ## if "person" in [env]{
drop{} ##
}else if "demo" in [env] { ## }else if "demo" in [env] {
drop{} ## drop{}
} ## }
} }
if "backend-env-v1" in [log][file][path] { if "backend-env-v1" in [log][file][path] {
drop {} drop {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment