Dashboards & Visualizations

how to freeze 1st column

avikc100
Path Finder

this is my splunk query:

avikc100_2-1709065250711.png

 


this is output:

avikc100_0-1709065118463.png


how can I freeze this 1st column where interface names are showing.
problem is when dragging to right then can not see the interface name

avikc100_1-1709065178383.png

below is source code:

avikc100_0-1709065558757.png

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @avikc100,

for my knowledge it isn't possible to block a column using the scroll bars as on Excel.

Ciao.

Giuseppe

View solution in original post

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@avikc100  - You can add custom CSS to your simple XML dashboard to achieve this.

 

Dashboard XML Source Code

 

<form>
  <label>Fixed Column Sticky</label>
  <row depends="$tkn_never_show$">
    <panel>
      <html>
        <style>
          #myTable table td:nth-child(1) {
              position: fixed !important;
          }
          #myTable table th:nth-child(1) {
              position: fixed !important;
          }
        </style>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <table id="myTable">
        <search>
....

 

 

If position: fixed doesn't work, you can try with position: sticky;

 

I hope this helps!! If it does kindly upvote!!!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @avikc100,

for my knowledge it isn't possible to block a column using the scroll bars as on Excel.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...