Hi vikfnu,
still not much of information in here, and also no hint to the search your using ..... so I'm asking the magic glass ball and try to answer what I reckon you might want to do ....
One thing first, upload the data as is into Splunk no need to do any preanalysis of any kind.
Upload your csv files (lets call them 1.csv to 4.csv ) into an index, let's say it is called csv and create a search that will return all the event, don't care about grouping or anything else for now - just get the events:
index=csv source=1.csv OR source=2.csv OR source=3.csv OR source=4.csv
this will just return all the events.
Now, we need to find some field that can be used to correlate the events you mentioned ComputerName and Categoristion_ I assume the later has something after the _ so we ignore this one for now.
By adding a case() statement to the SPL we can get all variations of ComputerName from the events and use it:
| eval ComputerName = case(isnotnull(ComputerName), ComputerName, isnotnull(computername), computername, isnotnull(computerName), computerName, 1=1, "unknown")
this list need to be extended so it matches all possible variation for any computer name field available in the events, and the last 1=1 is a catch all and will show you unhandled cases 😉
After that step you can correlate the events using a stats on ComputerName and _time :
| stats count values(*) AS * by ComputerName _time
Once this is done, you can add more PSL to munch the data in every possible way until you get your expected result. So here is everything from above as one SPL statement:
index=csv source=1.csv OR source=2.csv OR source=3.csv OR source=4.csv
| eval ComputerName = case(isnotnull(ComputerName), ComputerName, isnotnull(computername), computername, isnotnull(computerName), computerName, 1=1, "unknown")
| stats count values(*) AS * by ComputerName _time
If this is not what you are after, than I need to bring my magic glass ball into service or you need to provide more details on the events (anonymise any sensitive data!) and you SPL you used.
Hope this helps ...
cheers, MuS
... View more