Splunk Search

How can I hide '_time' field from report table?

wanda619
Path Finder
 
Labels (2)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

| fields - _time

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

| fields - _time

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

lcguilfoil
Path Finder

Hi,

This removes the values of _time, but not the column header for me. Any ideas?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please share your query so we can see how you're creating the column header.  I suspect you need to remove "_time" from the table command.

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

lcguilfoil
Path Finder

I'm using a Classic Dashboard. This is my XML:

<event>
	<search>
		<query>index=index 
		| fields - _time
		| table ApplicationName, ApplicationPath, LastRun</query>
	</search>
	<fields>ApplicationName, ApplicationPath, LastRun</fields>
	<option name="type">table</option>
</event>
0 Karma

richgalloway
SplunkTrust
SplunkTrust

I was able to eliminate the _time column by changing the event tag to a table tag.

      <table>
        <search>
          <query>index=_internal
		| fields - _time
		| table ApplicationName, ApplicationPath, LastRun</query>
          <earliest>$earliest$</earliest>
          <latest>$latest$</latest>
        </search>
        <option name="refresh.display">progressbar</option>
        <fields>["ApplicationName","ApplicationPath","LastRun"]</fields>
      </table>

 

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

lcguilfoil
Path Finder

Hi, I'd like to keep it an event and not a table.

PickleRick
SplunkTrust
SplunkTrust

An event does contain the _time field (even if empty). You cannot remove it from the visualization. The only thing you can do is hide it by declaring it invisible with CSS.

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