In splunk how we create these CMDB fields mapped to any sourcetype when new host added as asset..
like the below fields, if we don't have C
CRITICITY
ENVIRONMENT
FUNCTION
OFFER
BUSINESS UNIT
CODEREF
DATACENTER
There are already some proposals how this could maybe do. But to understand better your situation and which solution is best for you, we should know more about your needs, used tools, environment and what is your target for this.
If you are managing all inputs then maybe the easiest way to add this is use _meta field on those inputs. Just add those values in all input stanzas and then you have those events in your data when it comes into Splunk indexers.
Other options are just use e.g. tags when you are onboarding data sources into splunk as already mentioned.
As you see there is many ways to do it, and without more information it's impossible to say how you should do it.
r. Ismo
Create and Save a Search:
Create Lookup Definitions:
Configure Data Enrichment:
Map CMDB Fields:
You can create these CMDB fields in Splunk by using lookup tables or event-type tagging to map metadata to new hosts. If you don’t have a CMDB, consider using an asset inventory lookup or automatic field extractions in props.conf to enrich incoming data.