Splunk Search

How to search for serach with 746 lines

bond77s
Explorer

I need help with the structure of this search

index=indexname

I need help with the structure of this search
I would like to display the username, the group and the connection method |stats count by username, group, connection method |sort -count
Labels (1)
0 Karma

bond77s
Explorer

I just want to check an index for the following information and it to be displayed in a chart 

I looking for help with the structure of the search

the username, the group and the connection method

 

0 Karma

bowesmana
SplunkTrust
SplunkTrust

So, you do 

| stats count by user group "connection method"

if those are the names of your fields. 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

If you have a field called “connection method” you must surround it with ’ (use single ‘ in both side of field name). This told to splunk that those are field name, not two separate fields.

|stats count by username, group, 'connection method'

 

0 Karma

bowesmana
SplunkTrust
SplunkTrust

@isoutamo actually no, in stats for that type of field name it requires double quotes. It's eval that requires single quotes on RHS of expression.

isoutamo
SplunkTrust
SplunkTrust
Thanx, I usually rename those fields as remove spaces. In that way it’s much easier to use those.
0 Karma

bowesmana
SplunkTrust
SplunkTrust

What does that mean and what have you tried that you need help with and what is not doing what you expect?

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...