Knowledge Management

Issue with writing to an index

ccsfdave
Builder

I have this convoluted dbquery for sccm and I've boiled it down to a time and a value in a table.

The end of the search:

| table Time Total |collect index=sccmsummary sourcetype=sccm:patch marker=total_sccm_patches_needed 

The results:

Time 06/13/2016 06:54:52    
Total 8725

I want to collect this very simple info into a summary index (sccmsummary) however it is not writing to it.

So my troubleshooting has been to remove the sourcetype kv (but I have used it with collect in other successful searches). I then tried to send the results to main, which worked:

6/13/16
6:54:52.000 AM  
06/13/2016 06:54:52 -0700, info_search_time=1465826092.241, Time="06/13/2016 06:54:52", Total=8725, total_sccm_patches_needed
host = searchent01 source = /opt/splunk/var/spool/splunk/5f92461c476135d2_events.stash_new sourcetype = stash

Why is this not working with sccmsummary? Does anyone have any thoughts? I searched through the logs but nothing useful.

Thanks!

0 Karma

ryanoconnor
Builder

Have you created the sccmsummary index prior to running the command? You'll need to make sure the index is in place.

Also for your marker command, usually the format of that is key/value. So you might have something like

| table Time Total |collect index=sccmsummary sourcetype=sccm:patch marker="total_sccm_patches_needed=true"
0 Karma

ccsfdave
Builder

@ryanoconnor

yeah, the index has been created and pushed out to the indexers and search head.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...