Getting Data In

I'm trying to rename a sourcetype, by why isn't my configuration working?

a212830
Champion

Hi,

I want to rename a sourcetype, but the following isn't working:

[log4j]
KV_MODE = auto
ANNOTATE_PUNCT = false
TRANSFORMS-changesourcetype = set_fc_catalina_out

[set_fc_catalina_out]
FORMAT = sourcetype::fc_catalina_out
DEST_KEY = MetaData:Sourcetype

Am I missing something?

0 Karma

NOUMSSI
Builder
# with [<sourcetype>]:
rename = <string>
* Renames [<sourcetype>] as <string>
* With renaming, you can search for the [<sourcetype>] with
sourcetype=<string>
* To search for the original source type without renaming it, use the  field _sourcetype.
* Data from a a renamed sourcetype will only use the search-time configuration for the target
sourcetype. Field extractions (REPORTS/EXTRACT) for this stanza sourcetype will be ignored.
* Defaults to empty.
0 Karma

esix_splunk
Splunk Employee
Splunk Employee

It depends where in the process you are trying to rename this source type. Are you trying to rename this at the search layer or index layer?

What you are doing will rename the source type at parsing / index time.

If you are trying to do this to data that has already been indexed, you simply need to rename the data source:

[log4j]
rename = fc_catalina_out
0 Karma

esix_splunk
Splunk Employee
Splunk Employee

Post your configurations.

0 Karma

a212830
Champion

Doing it at the indexer layer, but it's not working. Would the indexers need to be restarted?

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

Once you change a props / transforms, the indexers do need to be restarted.

0 Karma

a212830
Champion

Tried all this - still no change.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...