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!

Introducing the Splunk Community Dashboard Challenge!

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

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...