Getting Data In

Path of props.conf and transforms.conf

prajnasaha
Loves-to-Learn

I'd like to monitor log files and ingest specific lines from these files. My props.conf and transforms.conf has no error. But for some reason the props.conf is not working and instead of indexing specific lines , it is indexing the whole log. Is there any specific path to place .conf files, or any other solution?

0 Karma

glc_slash_it
Path Finder

Hi,

can you paste your confs here? Usually the proper way of doing it would look something like this:

transforms.conf
[filter_some_events]
REGEX = <regex_that_matches_the_events_you_want>
DEST_KEY = _MetaData:Index
FORMAT = <your_index>

props.conf
[<sourcetype_stanza>]
...other_props_configs...
TRANSFORMS-filter_name = filter_some_events

 

0 Karma

prajnasaha
Loves-to-Learn

Hi @glc_slash_it , here it is. Although I am not getting the specific lines, instead the whole log is getting indexed.

 

transforms.conf
[err_line]
REGEX = ^(?!.error)
DEST_KEY = _MetaData:Index
FORMAT = error_idx

props.conf
[err_src]
TRANSFORMS-err_line = err_line

 

 

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...