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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...