we have some problems using the SIEM App and Displaying Hostnames on the Hosts Page if it comes to a setup where you use:
Beats -> Logstash -> Logstash -> Elastic
All components are using up to date V7.6.0
Beats can be Auditbeat and Winlogbeat in our case. I know, that if you use a Logstash to Logstah communication you can't use
"index => "%{[@metadata][beat]}-%{[@metadata][version]}" as indexname value in LS as Logstash does not preserve this information. So we are using agent type and version to set index name/pattern, which is working fine.
The index templates and patterns for Auditbeat and Winlogbeat are setted up manually, and "Discover" displays them correctly.
All logs have the "host.name" field included, which is, as far as i understood, important for the SIEM App to populate the Hosts Page with Hostnames for Events coming from any possible logsource.
Something more which I can check ?
Thanks for any advise on this.
In the above, I see host.hostname defined as text and host.hostname.keyword defined as keyword. I assume it's the same for host.name.
It sounds like you don't have the right mapping template loaded for the Beats data. See this guide on how to load the template manually. It normally happens automatically when you use Beats -> Elasticsearch directly, but when there's Logstash in-between you need to do that manually.
Note that the template is applied only when new indicies are created, so you might have to either drop the current indices or do an index rotation.
I went right through the alternate method for loading beats index templates. So is asume that the index templates are correct, as they have been created by auditbeat and winlogbeat itself.
I'm going to reindex the indices to use the right templates, as I was missing this step.
Reindexing on the correct Index Templates solved the problem.
What about using own index templates for custom log sources ? Use of ECS is clear, but correct Index Templates seems to me as one of the key config steps, too. (Beside adding the index patterns to SIEM App config) Is there any additional information on how to define correct index templates for custom logsources to be able to have this data in the SIEM App ?
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.