Hello, I could make tail plugin send grok patterned logs into influxDB thanks to your help. However, I came up with that I need to use grouping according to subdomains I extract from logs.
request_time="0.004",timestamp="12/Jul/2024:00:28:00 +0900",referer="https://h27.{domain}.com/Main.html",subdomain="h27"
request_time="0.006",timestamp="12/Jul/2024:00:28:00 +0900",referer="https://h28.{domain}.com/Main.html",subdomain="h28"
for example, I wanted to show time-series (_value)s of request_time(_field) grouped by subdomains. But the problem is that subdomain is also included in _field just like request_time. It seems they don’t let me select both in one query. So I wonder if you could recommend any grouping function. (I tried tag mapping for subdomains, but it literally sent “subdomain” string rather than dynamic {subdomain}s).
The image I’m thinking of is as below and sorry for the quality.
I appreciate it in advance.