Getting Data In

How can I use regex to list a table?

jacknguyen
Path Finder

I have a event like this:
image.pngimage.png

I want to list a table following CLIENT_LIST. For example:

ip_vpn            name_vpn       time_vpn

10.10.0.20    louis_tran        Tue Apr 4 9:21:41 2023

10.0.0.21       wanki_trinh    Tue Apr 4 9:15:02 2023

---------------------

Anyone have any idea

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

ITWhisperer_0-1680594933653.pngITWhisperer_0-1680594933653.png

 

View solution in original post

0 Karma

jacknguyen
Path Finder

the table show nothing image.pngimage.png

bowesmana
SplunkTrust
SplunkTrust

You have a space in your rex statement after CLIENT_LIST,

You should have

CLIENT_LIST,(?<

you have

CLIENT_LIST, (?<
0 Karma

jacknguyen
Path Finder

it works. thank you. How ever the table like this: 

image.pngimage.png

And I just want splunk show the latest event and mvexpand it like this:

I try to use ||stats latest but its not working. Do you know how to do this

image.pngimage.png

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

ITWhisperer_0-1680594933653.pngITWhisperer_0-1680594933653.png

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Free Professional Services for .conf26 Attendees

This year at .conf26, we are doing something a little different. We are bringing the best minds from ...

Defend at Machine Speed: Your Guide to Security Sessions at .conf26

Splunk .conf26   With threats moving at machine speed and attack surfaces expanding across hybrid ...

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...