Hi - I'm using the default winlogbeat.template.json file that downloaded with winlogbeat.
I've made some modifications to the mapping in an attempt to get .raw not-analyzed results to show up for key string fields in Windows Event Viewer, specifically: category and source_name.
Below is a copy of my template file. The lines I added are rows 31-50. I also:
Stopped the winlogbeat service on my client
Deleted my winlogbeat indexes on Elasticsearch
Deleted .winlogbeat.yml in C:\ProgramData\winlogbeat
Made the edits below to winlogbeat.template.json
Restarted the winlogbeat service
When data started showing up, deleted and recreated the index mapping in Kibana.
What am I doing wrong? .raw are still not showing up in Kibana in either Visualize or Explore.
Hi @joshablett, first off these modification should not be necessary. The provided index template should be setting the type of these fields to be not_analyzed strings. What version of Winlogbeat are you using?
I did not see you mention in your steps that you actually installed the index template to Elasticsearch. Before you index any data in Elasticsearch you need to HTTP PUT the index template into ES unless you have configured Winlogbeat to automatically install the template (if you are changing an already installed template then you need also overwrite: true). https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-template.html
You can check that the template is installed with curl http://localhost:9200/_template/winlogbeat?pretty.
Just to be sure, I deleted, re-downloaded winlogbeat, and did a full reinstall. This wiped away the changes I had previously made to the winlogbeat.template.json file.
Here is the template setting from my winlogbeat.yml file:
# A template is used to set the mapping in Elasticsearch
# By default template loading is disabled and no template is loaded.
# These settings can be adjusted to load your own template or overwrite existing ones
template:
# Template name. By default the template name is winlogbeat.
#name: "winlogbeat"
# Path to template file
path: "winlogbeat.template.json"
# Overwrite existing template
overwrite: true
There should definitely be some log lines related the template loading coming from v1.2.3. You should be seeing some of the log lines coming from here:
Hi Andrew - sorry for the delay. I've actually updated to the 5.0.0 winlogbeat alpha to get the parsed fields. With a clean install, I'm still not seeing the .raw option. Should I follow the same steps to troubleshoot this version?
There fields are not named as .raw but all the strings (with the exception of message) are not_analyzed strings (or keywords in ES 5.x). Here's the template file used with ES 2.x.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.