Splunk Search

How can I do fields from text-file?

Luninho
Explorer

I need to get 3 columns: host, port, description from text:
10.224.19.18 | 2222| New server
10.198.18.18 | 2443 | IFT
etc

I use curl-command and output=text

Labels (1)
0 Karma

Richfez
SplunkTrust
SplunkTrust

Add a header row, save it somewhere that either a UF, HF or the server itself can read it, and treat it like any other input file, selecting CSV and making the changes to the delimiter as required?

https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/Monitorfilesanddirectorieswithinputs.conf

 

Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

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