#waffle187 0/5 🟩🟩🟩🟩🟩 🟩⬜🟩⬜🟩 🟩🟩🟩🟩🟩 🟩⬜🟩⬜🟩 🟩🟩🟩🟩🟩 πŸ”₯ streak: 33 πŸ₯ˆ #wafflesilverteam https://t.co/4doM5G9lQM

#waffle187 0/5 🟩🟩🟩🟩🟩 🟩⬜🟩⬜🟩 🟩🟩🟩🟩🟩 🟩⬜🟩⬜🟩 🟩🟩🟩🟩🟩 πŸ”₯ streak: 33 πŸ₯ˆ #wafflesilverteam https://t.co/4doM5G9lQM — Warren Myers 🐧🐿 (@warrenmyers) Jul 27, 2022 from Twitter https://twitter.com/warrenmyers July 26, 2022 at 09:17PM via IFTTT

Favorite tweets

Map of Manhattan – 1840 https://t.co/3WmndeLqxM #MapPorn https://t.co/RXHFNRo8uP — MapPorn (@MapPornTweet) Jul 27, 2022 from http://twitter.com/MapPornTweet via IFTTT

Answer by warren for Splunk search doesn’t match CSV lookup file

There are a couple ways to do what you’re asking for The first is to use the lookup table as a filter in your initial search, like this: index=ndx sourcetype=srctp NOT [|inputlookup mylookup | fields ip] Or, do a lookup, and keep all the entries that have a null value in the lookup’s other field …
Continue reading Answer by warren for Splunk search doesn’t match CSV lookup file

Answer by warren for Extracting particular value using regex in splunk

Presuming Splunk hasn’t already extracted these automatically (it looks close to JSON, perhaps), this will do it: index=ndx sourcetype=srctp | rex field=_raw "status\":(?<status>\d+)" | search status=0 from User warren – Stack Overflow https://stackoverflow.com/questions/42234216/extracting-particular-value-using-regex-in-splunk/73129772#73129772 via IFTTT

Favorite tweets

WTF is this 🀑 ? Is this seriously what she thinks is normal behavior? https://t.co/c6cZvYkG51 — Wall Street Silver (@WallStreetSilv) Jul 26, 2022 from http://twitter.com/WallStreetSilv via IFTTT

Answer by warren for Regex working on regex101 and not on Splunk

This will do it, based on your sample data: (?<username>[a-z0-9A-Z\-\_\.\w]+)(\s?)+$ There are probably more efficient formulations. If you don’t have spaces at the end of the line, you can use this: (?<username>[a-z0-9A-Z\-\_\.]+)$ from User warren – Stack Overflow https://stackoverflow.com/questions/56115480/regex-working-on-regex101-and-not-on-splunk/73129494#73129494 via IFTTT

Answer by warren for Searching for specific values in Splunk query

For readibility, try using IN(): index=sne host=nwbsnep* sourcetype IN(sne_CAS_elilogs,sne_CMS_elilogs) Service.Operation IN("A","B","C","D","E","F","G","H") The issue seems to have been, though, that in your second parenthesized set of ORs, you had this: OR "Service.Operation"="D "OR "Service.Operation"="E" OR "Service.Operation"="F" In SPL, the OR has to be separated from what it’s or’ing by at least one space You had one …
Continue reading Answer by warren for Searching for specific values in Splunk query

Favorite tweets

Why would anyone criticize “Christian nationalism”? https://t.co/sMnYh6n4xe — Michael Knowles (@michaeljknowles) Jul 26, 2022 from http://twitter.com/michaeljknowles via IFTTT

Favorite tweets

@warrenmyers 🌎 Jul. 26, 2022 🌍 πŸ”₯ 11 | Avg. Guesses: 8.18 ⬜⬜🟩 = 3 #globle — CatsFanInOhio πŸ‡ΊπŸ‡¦ (@michaeldf88) Jul 26, 2022 from http://twitter.com/michaeldf88 via IFTTT

Why are sequential regular expressions more efficient than a combined experession?

In answering a Splunk question on SO, the following sample text was given: msg: abc.asia – [2021-08-23T00:27:08.152+0000] "GET /facts?factType=COMMERCIAL&sourceSystem=ADMIN&sourceOwner=ABC&filters=%257B%2522stringMatchFilters%2522:%255B%257B%2522key%2522:%2522BFEESCE((json_data-%253E%253E’isNotSearchable’)::boolean,%2520false)%2522,%2522value%2522:%2522false%2522,%2522operator%2522:%2522EQ%2522%257D%255D,%2522multiStringMatchFilters%2522:%255B%257B%2522key%2522:%2522json_data-%253E%253E’id’%2522,%2522values%2522:%255B%25224970111%2522%255D%257D%255D,%2522containmentFilters%2522:%255B%255D,%2522nestedMultiStringMatchFilter%2522:%255B%255D,%2522nestedStringMatchFilters%2522:%255B%255D%257D&sorts=%257B%2522sortOrders%2522:%255B%257B%2522key%2522:%2522id%2522,%2522order%2522:%2522DESC%2522%257D%255D%257D&pagination=null The person wanted to extract everything in the "filters" portion of the URL if "factType" was "COMMERCIAL" The following all-in-one regex pulls it out neatly (presuming the URL is always in the right order (ie factType …
Continue reading Why are sequential regular expressions more efficient than a combined experession?

Answer by warren for Splunk Count Specific String in a Field

Try this: index=ndx sourcetype=srctp msg=* | rex field=msg "factType=(?<facttype>\w+).(?<params>.+)" | stats count by facttype params | fields – count | search facttype="commercial" The rex will extract the facttype and any following parameters (note – if the URL is submitted with the arguments in a different order, you’ll need to adjust the regular expression) Then use …
Continue reading Answer by warren for Splunk Count Specific String in a Field

Answer by warren for Fluentd sending to Splunk HEC: Want to set sourcetype to the namespace

If you have not defined a sourcetype in an appropriate props.conf (and associated transforms.conf), Splunk will try to determine the sourcetype based on heuristics Those heuristics are not generally very accurate on custom data sources Instead of trying to "programatically set the sourcetype to be the namespace from where the logs were generated", add a …
Continue reading Answer by warren for Fluentd sending to Splunk HEC: Want to set sourcetype to the namespace

Answer by warren for Splunk search query

If you’d like a full regex for extracting all of the bracketed fields, this is the most efficient one-shot I could make: | rex field=_raw "(?<extid>[\d\.]+).+D\[(?<fieldtype>[^\]]+).+T\[(?<format>[^\]]+).+L\[(?<ll>[^\]]+).+N\[(?<len>[^\]]+).+E\[(?<type>[^\]]+).+S\[(?<charset>[^\[]+).+A\[(?<data>[^\]]+)" Most often I do sequential rex calls, just in case some fields aren’t present in all events, but your sample data shows each of these items present Once you’ve …
Continue reading Answer by warren for Splunk search query

Answer by warren for Splunk rex Search – Unable to tabulate because of NULL

Checking your regex on regex101 shows that it fails – you’re looking to match a literal ", but it’s not there for your "null" value This regular expression is both simpler to read, and pulls what you’re looking for (without the extraneous comma): | rex field=Message "TimesAccessed[[:punct:]]+(?<TimesAccessed>[^\",]+)" Use the [[:punct:]] character class to match any …
Continue reading Answer by warren for Splunk rex Search – Unable to tabulate because of NULL

Jonathan Kay (@Quillette podcaster) “speaks with #Swedish #Marxist Malcom Kyeyune, who argues that nominally #progressive theories of race & gender are actually aimed at securing #influence, employment, & #prestige for #underemployed university graduates” https://t.co/ARA4wNjHMZ https://t.co/1W777W1mLZ

Jonathan Kay (@Quillette podcaster) “speaks with #Swedish #Marxist Malcom Kyeyune, who argues that nominally #progressive theories of race & gender are actually aimed at securing #influence, employment, & #prestige for #underemployed university graduates” https://t.co/ARA4wNjHMZ https://t.co/1W777W1mLZ — Warren Myers 🐧🐿 (@warrenmyers) Jul 26, 2022 from Twitter https://twitter.com/warrenmyers July 26, 2022 at 04:04AM via IFTTT

Favorite tweets

@malmesburyman @LatinxPutler @ploughmansfolly Fill little honey bears and sell them. I was able to buy a whole ‘nother hive with the money. And what will I do with that honey money you ask? buy another and another. You need to be honeymaxxing. You need to be swimming in honey. Winny-the-Pooh needs to be saying “Oh …
Continue reading Favorite tweets