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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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