Videos

  • Add Videos
  • View All

Latest Activity

Profile IconWilliam S and Please... Dee Esssss :-) joined splunkninja
1 hour ago
Amine Recoba is now a member of splunkninja
yesterday
Michael Wilde replied to Nikita's discussion Count failures and success via transaction
"How are these transactions linked together... by a field called "ID"?  If so.. just build them with the field ID, and then use one of the MV commands to extract a field with success or failure in it.   Paste some samples and…"
Friday
Linus Myrefelt updated their profile
May 22
Marie updated their profile
May 21
Marie is now a member of splunkninja
May 21
Profile IconJitter and matthew arguin joined splunkninja
May 18
Profile IconMatthew Carter and Nikita joined splunkninja
May 17
I have three stanzas in my transforms.conf file--these work as long as the case matches what's in my regex statement.

How do I make "productimages" case insensitive?
REGEX = /productimages/[a-z0-9_-]+\.jpg

TIA,

Craig

Tags: case, insensitive, regex, transforms.conf

Views: 113

Reply to This

Replies to This Discussion

Put a (?i) at the beginning and it'll switch
it to case insensitive. Splunk's own Field Extraction wizard almost always adds that at the beginning of any learned regex.
Thanks, we've added that to our transforms.conf (on 3 different stanzas) and it works.

FYI, one of our developers asked me "what type of regex does Splunk support?". I have no idea what the answer to that is, and couldn't find it in the KB on splunk.com.

What is the correct answer?
PCRE or "Perl Compatible Regular Expressions"

RSS

© 2012   Created by Michael Wilde.

Badges  |  Report an Issue  |  Terms of Service