-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default mapping for "log" field used in examples #5920
Comments
FYI, I've manually loaded template that I altered to mention "log" field and set it type to "text", the same as "message" field. Kibana now behaves properly when searching for log events. This should be the default configuration, I can assist in fixing this if you'll guide me a lil bit ;-) |
Good catch! and thank you for reporting, we should actually switch defaults to use the new I have created #5934, you are more than welcome to contribute with this change, I'll take it at some point soon if you are not in the mood :) |
closed by #5963 |
…#5920 (elastic#5963) New docker prospector properly sends log entries in message field (see elastic#5920). Remove unused POD_NAMESPACE env var from filebeat manifest. (cherry picked from commit 241aa3c)
…ixes elastic#5934 and elastic#5920 (elastic#5976) * Use docker prospector in K8S examples, fixes elastic#5934 and elastic#5920 (elastic#5963) New docker prospector properly sends log entries in message field (see elastic#5920). Remove unused POD_NAMESPACE env var from filebeat manifest. (cherry picked from commit d066553) * Update NOTICE.txt
Hello again,
I've setup Filebeat 6.0.1 on Kubernetes, based on https://github.com/elastic/beats/blob/master/deploy/kubernetes/filebeat-kubernetes.yaml
which seems to follow best practices for kubernetes deployments.
I do not use any ingest pipelines nor any other processing of log entries. I just wish to send pure log lines from docker logs to elasticsearch. Example config part:
This configuration parses docker logs and sends log message to ES index under "log" field. This field has type: keyword as seen in mapping
I believe this should either:
a) be of type "text" for more meaningful user experience and easier "grepping" of log entries
b) or these log lines should be send under "message" key which has type: text already set
Could you advice how to handle that? Either default examples should make filebeat send log lines under "message" field or mapping of "log" field should be changed. As I am not experienced here I cannot tell which approach is better.
As a workaround, can you provide info how to achieve a) ? I can't tell from the docs. The
json.message_key
setting applies to source file (docker json logs from json-file log driver) and there doesn't seem to be any setting to tell it to send this undermessage
fieldFilebeat version 6.0.1
The text was updated successfully, but these errors were encountered: