Splunk Search

how to write a request

gitingua
Communicator

| inputlookup file1.csv

field1field2
1a
2b
3c

 

it is necessary so

123
abc

 

 

help! Thanks 

 

0 Karma
1 Solution

venkatasri
SplunkTrust
SplunkTrust

Hi @gitingua 

| inputlookup <lookup_name> | transpose | fields - column

you can rename 'row 1', row2 etc to desired ones

--

An upvote would be appreciated if this reply helps! 

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Have you looked at the transform command?

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

venkatasri
SplunkTrust
SplunkTrust

Hi @gitingua 

| inputlookup <lookup_name> | transpose | fields - column

you can rename 'row 1', row2 etc to desired ones

--

An upvote would be appreciated if this reply helps! 

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...