Splunk Search

Error in 'rex' command: Invalid argument: ' ' -- How do I fix this issue?

russell120
Communicator

Hi, I have a daily search that suddenly stopped working (upgraded from 6.7 to 7.1 before it stopped working, I believe):

|inputlookup my_file.csv
|eval shared_sources="master_source"
|append
   [search sourcetype="my_sourcetype" 
    |fields someIPs host
    |dedup someIPs 
    |rex field=host mode=sed "s/\..*$//"
    |rename someIPs as ip
    |rename host as host_my_sourcetype
    |eval shared_sources="my_sourcetype"]

What's the issue with my rex command?

Tags (3)
0 Karma

woodcock
Esteemed Legend

Upgrade to the latest maintenance release; there is nothing wrong with your rex.

0 Karma

russell120
Communicator

Just verified that the version we're using is 7.1.7. Is there any indication on what maintenance release we currently have in the Splunk version?

0 Karma

oscar84x
Contributor

Does the sub-search work if you run it by itself or do you get the same error?

0 Karma

russell120
Communicator

@oscar84x I still get the same error

0 Karma

mayurr98
Super Champion

could you provide sample test values for the host?

0 Karma

russell120
Communicator

@mayurr98 Sure, they're all in this format: GHRCEDC4BA.ghij.def.abc

0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...