Monitoring Splunk

How to write metrics.log configuration stanza?

bogdan_nicolesc
Communicator

Don't know if this is the right location to ask this, but i do wonder ....


I see that web_access.log is as described below:

web_access.log =>> config location \Splunk\etc\system\default\web.conf

# HTTP access log filename
log.access_file = web_access.log

# Maximum file size of the access log, in bytes
log.access_maxsize = 25000000

# Maximum number of rotated log files to retain
log.access_maxfiles = 5


But for the metrics.log, i only find this:

[source::...\\var\\log\\splunk\\metrics.log(.\d+)?]
sourcetype = splunkd

[source::...\\token_input_metrics.log(.\d+)?]
sourcetype = token_endpoint_metrics

[source::...\\http_event_collector_metrics.log(.\d+)?]
sourcetype = http_event_collector_metrics


What and from where should i read more info?

Thnx.

Labels (4)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It depends on what info you seek.  Start with https://docs.splunk.com/Documentation/Splunk/8.2.6/Troubleshooting/Aboutmetricslog

---
If this reply helps you, Karma would be appreciated.
0 Karma

bogdan_nicolesc
Communicator

Missed my question by miles, but ok 🙂 ...

I wasn't curious about what it contains, what contains, maybe will interest me in the future, what i was curious about, and didn't find any info on this anywhere, hence why i'm here, is where is it's stanza telling how big of a file to be metrigs.log and how metrigs.log.1  files shoud splunk create till rolling files.

Found that piece of info before asking this, didn't clarrify. Also, found other infos, on another question. That is entire another topic.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Check out the "appender.metrics" settings in $SPLUNK_HOME/etc/log.cfg.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...