Splunk Search

splunk integration on ocp

Roshni
Engager

Hello Team,

I am new to splunk and we have integrated splunk with OCP logs.

I am able to see the logs but not sure how to write query for example to fetch pods's active status,CPu utilization ,meory utilization,API response time.Any help would highly appreciated.

Thanks in advance

Labels (1)
0 Karma

bhargavi
Path Finder

Hi @Roshni,

If you wish to extract during search time, you can use  "Rex" command in your search query to extract required fields. It is simple and easy to learn and fun as well :). Sharing here some of splunk docs link for your reference to read through.

I have learnt regex from this site. - https://regexone.com/

Its pretty cool and lets us practice then and there. its pretty cool. Try here.

Splunk docs link : 

https://docs.splunk.com/Documentation/Splunk/8.1.1/SearchReference/Rex

You can practice regex in https://regex101.com/

Regex cheat sheet : https://www.debuggex.com/cheatsheet/regex/pcre

Happy Splunking ! 🙂

Get Updates on the Splunk Community!

Financial Services Industry Use Cases, ITSI Best Practices, and More New Articles ...

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

Splunk Federated Analytics for Amazon Security Lake

Thursday, November 21, 2024  |  11AM PT / 2PM ET Register Now Join our session to see the technical ...

Splunk With AppDynamics - Meet the New IT (And Engineering) Couple

Wednesday, November 20, 2024  |  10AM PT / 1PM ET Register Now Join us in this session to learn all about ...