Getting Data In

sourcetype Help !!

rakesh_498115
Motivator

Hi

I Have installed splunk forwarders in 4 servers and search head in 1 server .Now in all the splunk forwarders i have configured the inputs.conf file..with the index details and the input details..

configurations in inputs.conf file ::

[folder path]
sourcetype=A
index=A

and in search head i have configured the props.conf file...and restrated all the splunk servers....

configurations in prop file

[A]
linebreaker=/L:RECORD

Now i have opened the searched and tried to use the general search query..whether my sourcetypes are created or not..

like this ..

sourcetype="A" . but this is not working..

but when i give with the index name created for that sourcetype as ..

index="A" its working....

How can i make the sourcetype to work in the search head..do i have to do any changes in the inputs.conf file of the search head...Please help asap..

Tags (1)
0 Karma
1 Solution

lguinn2
Legend

When you create a new index, it is usually not searched automatically - depending on how roles are set up. Go to Manager->Access Controls->Roles. Check each role that should have access to index A. Does the role have access? Does it search index A by default?

If a role does not search index A by default (as yours probably does not), you must specify the index when you search. That's why index=A works, and sourcetype=A does not.

View solution in original post

lguinn2
Legend

When you create a new index, it is usually not searched automatically - depending on how roles are set up. Go to Manager->Access Controls->Roles. Check each role that should have access to index A. Does the role have access? Does it search index A by default?

If a role does not search index A by default (as yours probably does not), you must specify the index when you search. That's why index=A works, and sourcetype=A does not.

jbsplunk
Splunk Employee
Splunk Employee

Good thinking...along those lines search liked 'index=A sourcetype=A' would also return results.

0 Karma

jbsplunk
Splunk Employee
Splunk Employee

what is the sourcetype of the event when you search in index A? Inputs.conf is where the sourcetype should be defined, and if you've defined it as specified above, that should be sufficient.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...