Getting Data In

how to avoid displaying the field which contains #?

pavanae
Builder

Hi have a field named acts which displays all the different acts with below query

base search | table acts

which displays as below

displayed screen
113;screen

kjhkh;jkh

hjgjh#kjhk
jhgjhyg#

Now I dont want to display any of the results which contains # in it. How can I filter them?

0 Karma
1 Solution

somesoni2
Revered Legend

Try like this

base search | table acts | eval acts=mvfilter(NOT match(acts,"#"))

View solution in original post

0 Karma

niketn
Legend

If acts is one of your extracted fields you can filter the same in the base search itself

<Your Base Search> acts!="*#*"
| table acts
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Here's one way.

base search | regex acts!="#" | table acts
---
If this reply helps you, Karma would be appreciated.
0 Karma

somesoni2
Revered Legend

Try like this

base search | table acts | eval acts=mvfilter(NOT match(acts,"#"))
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...