- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
EVAL for multiple conditions check

davidcraven02
Communicator
01-03-2018
09:32 AM
I have a search which checks if the values within con_splunkUL exist within con_UL (or visa versa).
I need a field created called "Action" which checks this and also if the word "Hosting" exists in the Path field. If this is met then value should be 'Action Required' and if not then 'No Action Required'
search source="otl_varonis_monitoring.csv" host="opspksh01d.options-it.com" sourcetype="csv" type=Production
| eval con=machine. "," .drive
| eval con_UL = upper(con)]
| eval MonitoringStatus = if(like(con_splunkUL,"%".con_UL."%"), "Monitored", "Not Monitored")
| eval drive = Path
| rex field=drive "(?P<Drive>\w+)\:"
| dedup machine, Drive, Path, MonitoringStatus
| table machine, Drive, Path, MonitoringStatus, type
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

493669
Super Champion
01-03-2018
10:01 AM
@davidcraven02 Can you try below:
eval Action=if ((MonitoringStatus="Monitored")AND(like(Path,"%Hosting%")),"Action Required","No Action Required")
