Getting Data In

Can me make changes in csv file which is in splunk

vrmandadi
Builder

Hello,

I have a csv file and I am comparing that csv file with my search and get unique results but the problem with the csv file is that it has extensions

example:

my csv file has hostname with .abc.int or .auther.inc ,i just want to remove these extensions in the csv ,can we do that.that will make easy to compare with my search which has hostname

example

host_name(csv)

s4000cawv.abc.int
achaesdb01.auther.inc

host_name

s4000cawv
achaesdb01

Tags (3)
0 Karma

woodcock
Esteemed Legend

Like this (as I said in other answer):

... | rex field=Host_Name mode=sed "s/\.[^.]*$//"
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...