Getting Data In

how to take confs for firewall app into pretrained defaults "syslog" sourcetype

Mag2sub
Path Finder

WE have a syslog ng infrastructure dumping logs and read by splunk default sourcetype "syslog" with defaut extractions ...down the line discover a firewall app...with some good points..how does one midway change the firewall app that was a UDP monitor to be changed to become a file monitor and sourcetype also changed ? along with all the interesting knowledge objects of that app ?

Is there some graceful way to do this without cleaning out data ?

Thanks

Tags (1)
0 Karma

lukejadamec
Super Champion

Create a new index for the file monitor.

Once you confirm that the monitor is recording data then you stop splunkd.

This will drop all new UDP messages, and roll the Monitor hot bucket to a warm bucket.

Next, with Splunk still stopped, delete the UDP input, and delete all of the warm buckets in the new Monitor index db folder.

Make note of the time (not really necessary).

To span the input break you need to call each index with the OR operator:

index=oldindex OR index=newindex

Restart Splunk.

The UDP inputs will no longer exist, and the monitor will pickup at the time Splunk was stopped (end UDP and start Monitor).

Might want to wait an hour or so before you try this for some real splunk guru to chime in. I'm a splunk guru in spirit only.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...