Getting Data In

I want make a field as index time

nagarjuna280
Communicator

I have csv file contains timestamp

name, create_date, duration, distance are field names

sourcetype: example

I want to make that field as indexing time, what changes I have make in config files

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi nagarjuna280,
at first, only with csv files, you have to deploy props.conf and transforms.conf both on indexers and forwarders.
anyway, your props.con must be something like this

[ csv ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=csv
KV_MODE=none
category=Structured
description=Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled=false
pulldown_type=true

if there isn't the header with fieldnames add

FIELD_NAMES=field1, field2, field3, ...

I suggest to use the Add data function of the Splunk web interface to test your field extraction.
Bye.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi nagarjuna280,
at first, only with csv files, you have to deploy props.conf and transforms.conf both on indexers and forwarders.
anyway, your props.con must be something like this

[ csv ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=csv
KV_MODE=none
category=Structured
description=Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled=false
pulldown_type=true

if there isn't the header with fieldnames add

FIELD_NAMES=field1, field2, field3, ...

I suggest to use the Add data function of the Splunk web interface to test your field extraction.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...