All Apps and Add-ons

Searching The Web data using the Web data-model

Rakesh92
Engager

Hello Experts,

We tried to add the web data into the Web data model using the eventtypes and tags and I was successful in creating those to Normalize the data. I did the searched for the web data and saved it as eventtype in eventtypes.conf in Splunk_SA_CIM/local/ and then in the tags.conf gave a tag for that eventtype to match data to data model using the tag.

My question here is do i need to give the tag name as 'Web' (The name of the data model) or create a child and like 'proxy' and give the tag name as proxy ?.

The other question is I'm trying to test if the data is linked to the data model.

I used a search [|datamodel Web]

The result is as follows, It is showing the structure of the datamodel.

{ [-]
description: Web Data Model

displayName: Web

modelName: Web

objectNameList: [ [-]
Web

Proxy

zscaler

]

objectSummary: { [-]
Event-Based: 3

Search-Based: 0

Transaction-Based: 0

}

objects: [ [+]
]

}

Show as raw text

When I tried to search [|datamodel Web proxy search]

It is shown there is no result found.

Please help me giving the write tag in tags.conf to link data to the datamodel and searching the data using that datamodel

0 Karma
1 Solution

harsmarvania57
SplunkTrust
SplunkTrust

Hi @Rakesh92,

When you assign tag to eventtype for Web datamodel you need to provide tag web because Web datamodel using (cim_Web_indexes) tag=web in Base search. If you want to search proxy data then you need to assign proxy tag as well to eventtype which you created.

Now when you search using splunk query |datamodel Web, it will give you datamodel structure only. When you want to search data from Web datamodel, you need to run query |datamodel Web Web search. After running this query if you will still not get any result then you need to check cim_Web_indexes macro to add/modify index list based on your requirement.

I hope this helps.

Thanks,
Harshil

View solution in original post

harsmarvania57
SplunkTrust
SplunkTrust

Hi @Rakesh92,

When you assign tag to eventtype for Web datamodel you need to provide tag web because Web datamodel using (cim_Web_indexes) tag=web in Base search. If you want to search proxy data then you need to assign proxy tag as well to eventtype which you created.

Now when you search using splunk query |datamodel Web, it will give you datamodel structure only. When you want to search data from Web datamodel, you need to run query |datamodel Web Web search. After running this query if you will still not get any result then you need to check cim_Web_indexes macro to add/modify index list based on your requirement.

I hope this helps.

Thanks,
Harshil

Rakesh92
Engager

Hi Harshil,,

That really Helped, Actually the macro was empty that the reason I didn't see any data. Once I added the index to the macro that worked. Thanks A lot 🙂

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...