Getting Data In

Universal Forwarder failed to start--how do I get it to ingest the missed entries?

JayX
Explorer

The UF service failed to start after a reboot on a Windows Server.   I've addressed that issue, but there are logs that were generated during the downtime that are not being forwarded.  Is there any way to force the entries up?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

A one-shot upload is for ingesting a file that was skipped entirely and is not suitable for files that were only partially ingested.  You could use it anyway, but you'll end up with duplicate data.

To do a one-shot upload, run splunk add oneshot -source <<filename>> -index foo -sourcetype bar.  Run splunk help add oneshot for details.

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The UF is supposed to pick up where it left off when monitoring files or the Windows event log.  If files were rotated while the UF was down then it's possible the forwarder no longer sees the file.  In that case, you may have to perform a one-shot upload of that file.

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

JayX
Explorer

That was what I'd assumed would happen, but the forwarder did not pick up any of the events that were logged into the DNS debug log while the forwarder was down.  There are events all the way back to last week in that log, but only the events that have been added since the forwarder was brought back up are being forwarded.

 

How do I perform a one-shot?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

A one-shot upload is for ingesting a file that was skipped entirely and is not suitable for files that were only partially ingested.  You could use it anyway, but you'll end up with duplicate data.

To do a one-shot upload, run splunk add oneshot -source <<filename>> -index foo -sourcetype bar.  Run splunk help add oneshot for details.

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

JayX
Explorer

Thank you--I may manually extract the gap information and one-shot it from a separate file.


I have also discovered that the forwarder did not fail to start with Windows; it seems to have crashed a couple of days later, so I'm guessing the issue is that the data was still being read by some process on the system, but not being forwarded.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...