github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/manifests/fluent-operator/fluentbit-config-configmap.yaml (about)

     1  # Copyright (c) 2023, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  apiVersion: v1
     4  kind: ConfigMap
     5  metadata:
     6    name: {{ .fluentbitConfigMap }}
     7    namespace: {{ .namespace}}
     8    labels:
     9      app: {{ .fluentbitComponent }}
    10  data:
    11    opensearch-template-verrazzano.json: |
    12      {
    13        "index_patterns":[
    14          "verrazzano-system",
    15          "verrazzano-application*"
    16        ],
    17        "version":60001,
    18        "priority": 101,
    19        "data_stream": {},
    20        "template": {
    21          "settings":{
    22            "index.refresh_interval":"5s",
    23            "index.mapping.total_fields.limit":"2000",
    24            "number_of_shards":1,
    25            "index.number_of_replicas":0,
    26            "index.auto_expand_replicas":"0-1"
    27          },
    28          "mappings":{
    29            "dynamic_templates":[
    30              {
    31                "message_field":{
    32                  "path_match":"message",
    33                  "match_mapping_type":"string",
    34                  "mapping":{
    35                    "type":"text",
    36                    "norms":false
    37                  }
    38                }
    39              },
    40              {
    41                "object_fields": {
    42                  "match": "*",
    43                  "match_mapping_type": "object",
    44                  "mapping": {
    45                    "type": "object"
    46                  }
    47                }
    48              },
    49              {
    50                "all_non_object_fields":{
    51                  "match":"*",
    52                  "mapping":{
    53                    "type":"text",
    54                    "norms":false,
    55                    "fields":{
    56                      "keyword":{
    57                        "type":"keyword",
    58                        "ignore_above":256
    59                      }
    60                    }
    61                  }
    62                }
    63              }
    64            ],
    65            "properties" : {
    66              "@timestamp": { "type": "date", "format": "strict_date_time||strict_date_optional_time||epoch_millis"},
    67              "kubernetes.pod_ip": {
    68                "type": "text",
    69                "norms": false,
    70                "fields":{
    71                  "keyword":{
    72                    "type":"keyword",
    73                    "ignore_above":256
    74                  },
    75                  "ip":{
    76                    "type": "ip",
    77                    "ignore_malformed": true
    78                  }
    79                }
    80              },
    81              "http_request.remoteIp": {
    82                "type": "text",
    83                "norms": false,
    84                "fields":{
    85                  "keyword":{
    86                    "type":"keyword",
    87                    "ignore_above":256
    88                  },
    89                  "ip":{
    90                    "type": "ip",
    91                    "ignore_malformed": true
    92                  }
    93                }
    94              },
    95              "http_request.responseSize": {
    96                "type": "text",
    97                "norms": false,
    98                "fields":{
    99                  "keyword":{
   100                    "type":"keyword",
   101                    "ignore_above":256
   102                  },
   103                  "integer":{
   104                    "type": "integer"
   105                  }
   106                }
   107              },
   108              "http_request.status": {
   109                "type": "text",
   110                "norms": false,
   111                "fields":{
   112                  "keyword":{
   113                    "type":"keyword",
   114                    "ignore_above":256
   115                  },
   116                  "integer":{
   117                    "type": "integer"
   118                  }
   119                }
   120              },
   121              "http_request.requestSize": {
   122                "type": "text",
   123                "norms": false,
   124                "fields":{
   125                  "keyword":{
   126                    "type":"keyword",
   127                    "ignore_above":256
   128                  },
   129                  "integer":{
   130                    "type": "integer"
   131                  }
   132                }
   133              }
   134            }
   135          }
   136        }
   137      }