Getting Data In

Converting log events to metrics using existing fields

brent_weaver
Builder

Good morning all, I am reading docs on how to create sourcetypes for metrics but none go into how to just use fields instead of regex. I am using fluentbit to send metrics to HEC (and it works perfectly) in JSON format.

How do I use the existing fields to rewrite the sourcetype as metrics?

I included a screenshot of what the events look like.alt text

Tags (1)

jkat54
SplunkTrust
SplunkTrust

Can’t you define the sourcetype when you setup the HEC token?

Would you want to change the sourcetype there?

There is a sourcetype rename feature in the settings drop down under fields I believe.

0 Karma

brent_weaver
Builder

When metrics are involved it's more than just defining the sourcetype. Standard fields need to be defined to play well with metrics store.

http://docs.splunk.com/Documentation/Splunk/7.2.1/Metrics/L2MOverview

0 Karma

jkat54
SplunkTrust
SplunkTrust

Ok so you don’t want to “rewrite the sourcetype as metrics”...

This was somewhere on the link you gave, does it make sense?

http://docs.splunk.com/Documentation/Splunk/7.2.1/Metrics/L2MConfiguration

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...