Getting Data In

How to extract data from logfiles in XML format?

chezbert
New Member

I have set up a universal forwarder to monitor my
server logfile. The file is written in XML format
and thus has a header and footer of:

<?xml version="1.0" encoding="UTF-8"?><rps_logfile version="1.0">

and:

</rps_logfile>

respectively.

As the server produces log output, it appends to the file by
backing up over the footer, writing the new entry, and re-writing
the footer.

This causes the universal forwarder to send redundant information
and the splunkd receiving the data seems to get confused sometimes.

What are my options for having the header & footer ignored or
having the forwarder send only the truly new information?

Tags (2)
0 Karma

chezbert
New Member

I decided to indulge in a preprocessing approach.

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...