相关疑难解决方法(0)

Kibana:在文本中搜索字符串

我在 Kibana 中有一条日志消息,其中包含以下内容:

org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:597)
Run Code Online (Sandbox Code Playgroud)

不返回结果的实际搜索: log_message: "hibernate3"

如果我搜索“hibernate3”,则不会出现此消息。我正在使用 Elasticsearch 模板并为该字段编制索引,但也希望能够进行不区分大小写的全文搜索。这可能吗?

正在使用的模板:

{
"template": "filebeat-*",
"mappings": {
    "mainProgram": {
        "properties": {
            "@timestamp": {
                "type": "date",
                "format": "strict_date_optional_time||epoch_millis"
            },
            "@version": {
                "type": "text"
            },
            "beat": {
                "properties": {
                    "hostname": {
                        "type": "text"
                    },
                    "name": {
                        "type": "text"
                    }
                }
            },
            "class_method": {
                "type": "text",
                "fielddata": "true",
                "index": "true"
            },
            "class_name": {
                "type": "text",
                "fielddata": "true"
            },
            "clientip": {
                "type": "ip",
                "index": "not_analyzed"
            },
            "count": {
                "type": "long" …
Run Code Online (Sandbox Code Playgroud)

search elasticsearch kibana

5
推荐指数
3
解决办法
3万
查看次数

标签 统计

elasticsearch ×1

kibana ×1

search ×1