Monitoring Splunk

problem with hyphen in field values

paulw10
Explorer

I am trying to create an alert to track failed login events on windows machines

e.g.

index=fa_servers EventCode=4625 OR 533 OR 529 

but I have a problem where the account name in the event has a hyphen. Splunk is treating the hyphen as another account name  

Values

Count% 
-87100%
 
OMGHCLPP-ADS002$4652.874%
 
ALPHCLPP-ADS002$4147.126%

 

you can see the 87 count is 46+41 so its treating the hyphen as its own value. 

I have been trying to use eval and mvindex to try and just extract the 2 usernames but i am not getting anywhere. can someone explain how i can properly parse these values so it only sees 2 account names 

Labels (1)
0 Karma

paulw10
Explorer

it's ok I managed to find the problem. i Was not digging far enough into the RAW events and in actual fact the events mentioned Account_name twice with the second value showing as - so Splunk naturally recorded two account names for the events. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you share the query you used to get these results and some sample events?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...