添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
乐观的番茄  ·  Solved: ERROR: ...·  2 周前    · 
大鼻子的煎鸡蛋  ·  Scheduling - 1.66.0·  1 周前    · 
纯真的石榴  ·  Work with time types ...·  1 周前    · 
酷酷的金针菇  ·  How the heck does ...·  1 周前    · 
愉快的沙滩裤  ·  Instrumentation | ...·  6 天前    · 
含蓄的机器猫  ·  MSVC Visual Studio 22 ...·  1 年前    · 

Hi all,

I am on 7.13.1 on ElasticCloud. I mapped hostname via Logstash with syslog but for some reason the KQL search doesn't come out right. What am I doing wrong?

search:
hostname: cr1-ams1

Result:
cr1-ams1
cr2-ams1
ams1-foo
ams1-bar

search:
hostname: cr1*ams1

Result:

  grok {
    match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
              

Hey @lchan,

If you search hostname: "cr1-ams1" with the quotes, you should only see entries with the hostname matching exactly cr1-ams1.

As for the wildcard, check this documentation: Kibana Query Language | Kibana Guide [7.15] | Elastic

Wildcards can only be used to specify a search prefix, i.e. they only work if they are the last character in the search string. For example, cr1* would match everything that begins with cr1.

Let me know if this helps.

Brian

Hi @brianseeders ,

I fixed the issue by adding . keyword to the field. I was told it is required to add . keyword in order to perform wildcard search such as cr*ams1