Getting Data In

Problem with indexes except main

RezaET
Observer

I installed cisco network add-on, but only main index work and I cannot store log in another index

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Can you be more verbose? What do you mean by "I cannot store log in another index". The TA itself shouldn't have anything to do with the indexes.

0 Karma

RezaET
Observer

first, I created new UDP data input whit a new index "cisco"

but when I search index=cisco there was no event

then I create new UDP data input whit "main" index and I worked.

but I don't like to store my switch event in main index

 

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Have you created an index named "cisco" before creating inputs? You can't send events to a non-existent index.

If you haven't, the event will end up either in a last-chance index (if you have one configured) or discarded (and you'll get a warning in _internal about it).

0 Karma

RezaET
Observer

yes, first I cedared index and then input. but it didn't work, only main index work

0 Karma

PickleRick
SplunkTrust
SplunkTrust

That does indeed seem strange because you should be getting events into an index regardless of an add-on. The only things that could make you not see the events would be bad timestamp parsing (but that would happen regardless of destination index), bad timerange you're searching (ditto) or no permissions for the cisco index (but as you're saying you've created the index I'm assuming you've got admin rights here).

Try to run

| tstats count where index=cisco by source sourcetype

over all time and see if you get any results

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @RezaET ,

the issue probably is in the default search path:

by default only the main index is in the default search path and in apps the index isn't specified.

You have two solutions:

  • add the other indexes in the default search path,
  • add the index in all the searches of your app.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...