For a sourcetype nginx log error, I would like to index everything except data that contains : unlink text. Eg:
2015/01/28 13:26:44 [crit] 29614#0: unlink() "/media/ephemeral0/cache/vtex_files_nginx/0/d4/9d3194ccb8b1e93e6e041ca812155d40" failed (2: No such file or directory)
This's the kind of message I don't want to index
So I created a props.conf
[source::/var/log/nginx/error.log]
TRANSFORMS-setJanusEdgeData = sendToPurge,sendToIndexing
and also a transforms.conf
[sendToPurge]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
[sendToIndexing]
REGEX = ^((?!: unlink).)*$
DEST_KEY = queue
FORMAT = indexQueue
It's works fine leaving only messages without ": unlink" text to be indexed. Despite the success if I look at my indexing peers the splunkd.log file it's there messages like that one:
ERROR Regex - Failed in pcre_exec: Error PCRE_ERROR_RECURSIONLIMIT for regex: ^((?!: unlink).)*$
Where is the problem with regex? Or where I can change the RECURSIONLIMIT?
... View more