There seem to be quite a bit of unmapped fields in .siem-signals-default index. I tried refreshing the index pattern, but the fields are not added. The result is I can't use certain fields:
However, if you want them indexed you can add them either directly or better yet to the template so that any newly created indexes from the ILM policy will take effect.
You can change the template/mapping to whichever space you want to and then any newly created data will be indexed from that point forward from that space. You can create different template indexing and life cycle management policies per each space you want to as well since siem signals are per space.
To see the ILM policy, the current mapping, and the current template for the default space from dev tools would be this:
GET .siem-signals-default/_ilm/explain
GET .siem-signals-default/_mapping
GET _template/.siem-signals-default
GET _ilm/policy/.siem-signals-default
If you are using another space such as "test-space", then replace ".siem-signals-default" with ".siem-signals-test-space" to see the settings for that space above.
To change any of the settings such as the template for newly created indexes when a roll over occurs and then the existing mapping you can do from dev tools using these references:
I don't know how sensitive your current data set is, or your production environment so I have to suffix all of this with please backup your siem signals, templates, mappings, etc... before doing any of these operations in case you need to "roll back" any changes and feel comfortable with the tooling: https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html
On upgrades our product if you go this route, you just have to be cautious as we might migrate the indexes for you forward but we will keep in mind that advanced users might have "hand edited" some of these settings. So on future upgrades you will just want to double check that your custom mappings have rolled forward with our product or not and perform regular backups of your data using snapshots.
@Frank_Hassanabad Tx for the detailed explanation. I'm considering going down the following road (which I'm doing for beat indices too for multiple years and survives updates)
Create an 'overrides' template and add custom and extended fields there which points to the ".siem-signals-default-*" index and with a higher order then the builtin template
That's not a bad idea. In the code we always look for .siem-signals-${space-id} such as .siem-signals-default within SIEM if that helps you out planning a strategy.
Happy to hear you're a very experienced beats person!
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.