Getting Data In

Second index with fewer fields

tnkoehn
Path Finder

I have large CDR records that are going to one index (let's call it index1). I need a second index (let's call it index2) that only uses a subset of the fields in the CDR records without messing up index1. For example, a CDR record looks like:

field1|field2|field3|...............|field200

I want index2 to only have these fields:

field20,field30,field33,field101,field150,field172

I know I can get these fields using regex in transforms.conf but just need to know (if possible) what to do in props and transforms to get these fields in index2.

The current props.conf looks like:

[index1]
REPORT-parsefields = index1_parse

The current transforms.conf looks like:

[index1_parse]
DELIMS = "|"
FIELDS = "field1", "field2", "field3",......."field200"
Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You could set up indexer1 to forward this data to indexer2 on top of indexing it itself. Then tell indexer2 to apply a huge SEDCMD to the data that strips out the first nineteen fields, keeps the 20th, strips out nine, keeps the 30th, and so on.

0 Karma

tnkoehn
Path Finder

Can you give me quick example of what my conf files would look like?

0 Karma
Get Updates on the Splunk Community!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...