All Apps and Add-ons

Script to generate A splunk host logs monthly

yelinaung
New Member

Hi everyone,
I would like to generate splunk logs for a particular host monthly via Bash script or Python or anything...
How could I accomplish this task? please show me some guidlines..

Thanks,
Ye Lin Aung

0 Karma

woodcock
Esteemed Legend

There is almost always a Splunk app to help you forward logs in. For example, you can use The Splunk Add-On for Linux and Unix get get OS-based details from *Nix machines: https://splunkbase.splunk.com/app/833/

0 Karma

burwell
SplunkTrust
SplunkTrust

Hi @yelinaung. Can you say more about what you are trying to accomplish?

If you want a way to write a log file every month you can use cron with a script of your choice assuming you are on Linux.

https://crontab.guru/every-month

Splunk has scripted inputs with a Splunk forwarder that can run every month. So each forwarder could write a log file each month.

https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Inputsconf

Tell us more what you are trying to do.

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 ...