Getting Data In

Making splunk act like tail -f $file



I'm trying to get Splunk to do the equivalent of a tail -f $file. Specifically what I'm trying to do is get the event output lines to be a lot more compressed and just show the raw text, no parsing, no field picker, no arrows, no splunk time stamps. I don't know how much of this is possible, but some of it might be.


Tags (3)

Splunk Employee
Splunk Employee
  1. Create a search that shows the events you're interested in, e.g., maybe it's just source=/var/log/file.log, or source=*whatever.log | head 500. The search should have a real-time time range.

  2. From the actions menu, select "Add to dashboard". Add the search to a new dashboard.

  3. Edit the dashboard's View XML, using the event panel as a reference. You won't be able to remove the timestamp or change the spacing or typeface from here. Some things will require an edit of the CSS behind this view.

  4. If you prefer, use @Mackenzie's technique of picking out the _raw field and display the results with the <table> panel rather than the <event> panel. You can edit the prefs of this in the view XML as well.


A simple solution that may achieve what you want is:

| fields _raw | eval event=_raw | table event

Get Updates on the Splunk Community!

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

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

Get More Out of Your Security Practice With a SIEM

Get More Out of Your Security Practice With a SIEMWednesday, July 31, 2024  |  11AM PT / 2PM ETREGISTER ...