Splunk Search

How to get details of accelerated datamodels that failed to complete?

Taruchit
Contributor

Hello All,

I need help to build an SPL for finding details of Accelerated Data Models which have failed to execute or failed to complete.

I have used rest command to fetch details of data models, but I am unable to find any fields that share if and when it failed. 

|rest /servicesNS/nobody/-/datamodel/model splunk_server=local
|rex field=acceleration "\{\"enabled\"\:(?<acceleratedValue>[^\,]*)"
|search acceleratedValue=true

Thus, it would be very helpful to seek your suggestions and approach.

Thank you
Taruchit

Labels (2)
0 Karma
1 Solution

paulcurry
Path Finder

Perhaps the SPL from https://hurricanelabs.com/splunk-tutorials/how-to-improve-your-data-model-acceleration-in-splunk/?

I won't post it here since it's fairly large but running it in my environment listed all the details of the data models and completion percentage.

View solution in original post

0 Karma

paulcurry
Path Finder

Perhaps the SPL from https://hurricanelabs.com/splunk-tutorials/how-to-improve-your-data-model-acceleration-in-splunk/?

I won't post it here since it's fairly large but running it in my environment listed all the details of the data models and completion percentage.

0 Karma

Taruchit
Contributor

Hi @paulcurry,

Thank you for sharing the resource.

I do get the results with following fields: -

  • datamodel
  • acceleration_enabled
  • complete(%)
  • size(MB)
  • correlation_searches_enabled
  • access_time

In the SPL, there are some macros: -

datamodel()

drop_dm_object_name()

My questions are: -

1) Can you please help to share the details about the above two macros?

2) And do you know about any other approach of fetching details of accelerated datamodels apart from the one you shared previously?

Thank you

 

0 Karma

paulcurry
Path Finder

1. Those are built-in OOB macros.  You can view them in "Settings-Advanced Search-Search Macros"

2. Sorry, I don't unless you look at "Settings-Data Models".  The ones with yellow lightning bolts are the accelerated ones.  You can expand those in there and see some details.

0 Karma

Taruchit
Contributor

Thank you for sharing.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...