Dashboards & Visualizations

Need to align the table output

senthamilselvan
Engager

Hi Team,
I have imported the logs and i used search query using multikv. The fields are generated fine, but the table alignment is not looking good.
Please find the search query and the output.
index=test sourcetype=gglogs3 | multikv |table REPSD REPHG RPLXP

I have attached the output. In the output, i want to remove all the empty lines and also "====" as well.

alt text

Tags (1)
0 Karma

DEAD_BEEF
Builder

You can specify in your query that there must be a value in a field, that is do not allow blanks to be in your results by using

REPSD=* REPHG=* RPLXP=*

You can eliminate fields with certain values (=) by using:

REPSD=* REPHG=* RPLXP=* AND NOT (REPSD="*=*" OR REPHG="*=*" OR RPLXP="*=*")
0 Karma

p_gurav
Champion

Hi senthamilselvanj,

You can try using | search (REPSD=* NOT REPSD="*=*") (REPHG=* NOT REPSD="*=*") RPLXP=* before your search query

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...