Getting Data In

How can we parse syslogs?

ddrillic
Ultra Champion

We have log files which contain syslogs, such as -
-- Jun 8 11:04:26 PRD_DMZ_004_XXXX-PROD-XXXAPP [0x810002d4][cli][error] trans(1582882743): TCP connection to "xx.xxx.xxx.xxx port 443" failed (connection refused)

On the UI, it's pretty gloomy as no fields are being parsed. What can we do?

For one thing, I'm not even sure whether these log files conform to the "standard" syslog syntax...

Tags (2)
0 Karma
1 Solution

sundareshr
Legend

Simplest would be to use a pretrained sourcetypes. But not all formats are pretrained. If yours is not, you can use IFX or write your own regex to extract the fields.

View solution in original post

0 Karma

sundareshr
Legend

Simplest would be to use a pretrained sourcetypes. But not all formats are pretrained. If yours is not, you can use IFX or write your own regex to extract the fields.

0 Karma

ddrillic
Ultra Champion

Sounds great. Much appreciated.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...