Getting Data In

filter data that are more than hundred K bytes

SplunkCSIT
Communicator

<!--wewe-->1212341234gfgdfggsgsdf-sgsdgsdgreg-3333

props.conf

[test]
BREAK_ONLY_BEFORE =<xml>
KV_MODE = xml
TRANSFORMS-test1 = content
transforms.conf

[content]
SOURCE_KEY=_raw
REGEX=(.?)<body>.?</body>(.*)
DEST_KEY=_raw
FORMAT=$1$2

it works for above xml but if the content in the are more than few hundred K bytes, it will not work. Any suggestion to resolve this? thks

Tags (1)
0 Karma

lguinn2
Legend

I believe that your problem is not that the .conf files are wrong, but that your events are larger than the Splunk defaults.
You can fix this by adding the following lines to your stanza in props.conf

TRUNCATE = 0
MAX_EVENTS = 10000

TRUNCATE is the maximum number of bytes in an event. Setting it to 0 means "no limit." You might want to set it to an actual maximum size.

MAX_EVENTS is the maximum number of lines in an event. The default is 256. I arbitrarily set it to 10,000 in the example.

Also, see the answer to your original question:

http://answers.splunk.com/answers/132023/propsconf-and-transformsconf-does-not-work

SplunkCSIT
Communicator

it does not work, any other alternative? thks

0 Karma

Lowell
Super Champion

Something else to keep in mind is the LOOKAHEAD value in transforms.conf. If you expect your regex to go more than 4K into the event, then the value will need to be increased. (LOOKAHEAD defaults to 4096 bytes.) Also be careful with the performance implications of changing LOOKAHEAD or the TRUCATE/MAX_EVENTS settings. It's fine to test with arbitrarily high numbers, but sometimes "tests" leak into production when they can kill performance. 😉

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Supercharging Windows Security Detection Performance: Introducing Hybrid Field ...

Windows event logs—from Security auditing and Sysmon to PowerShell script blocks—form the operational backbone ...

Enriching Signals with the OTel Lookup Processor

Introduction Raw telemetry is often incomplete. A log line might record an IP address, but what you really ...

Meet the .conf26 AI Agent Buildathon Winners

At the .conf26 AI Agent Buildathon, Splunk users turned their operational expertise into working AI agents ...