Hello,
we are planning to upgrade our splunk platform from version 6.4 to version 7.3. We implemented a server with version 7.3 and detected a change in the syntax of our search queries.
we want to know if there is any mechanism to change the syntax automatically
thanks
I don't recall a specific change that introduced that syntax, but it's been a long time since I used Splunk 6.x.
There is no automatic method to update all of your searches. Any automation would have to understand when you meant "PECconseu" or "PECconseu". Youll just have to review all of your queries to find those that need updating. Fortunately, the new syntax works in old versions of Splunk so you can start changing them now.
I don't recall a specific change that introduced that syntax, but it's been a long time since I used Splunk 6.x.
There is no automatic method to update all of your searches. Any automation would have to understand when you meant "PECconseu" or "PECconseu". Youll just have to review all of your queries to find those that need updating. Fortunately, the new syntax works in old versions of Splunk so you can start changing them now.
(old query -> search = index="index_nueva_internet_personas" PECconsdeu OR "PEC consdeu"|search ESTADO_TRX="R"|stats count as Rechazos
)
(new query -> search = index="index_nueva_internet_personas" "*PECconsdeu*" OR "*PEC consdeu*"|search ESTADO_TRX="*R*"|stats count as Rechazos
)
Could you be more specific about the syntax change you found?
Hi Rich, thanks for your reply
old query -> search = index="index_nueva_internet_personas" PECconsdeu OR "PEC consdeu"|search ESTADO_TRX="R"|stats count as Rechazos
new query -> search = index="index_nueva_internet_personas" "PECconsdeu" OR "PEC consdeu"|search ESTADO_TRX="R"|stats count as Rechazos
sorry
new query -> search = index="index_nueva_internet_personas" "PECconsdeu" OR "PEC
consdeu"|search ESTADO_TRX="R"|stats count as Rechazos
this editor delete asterisk character
Put your queries inside backticks (`) to avoid that.
(
)
old query -> search = index="index_nueva_internet_personas" PECconsdeu OR "PEC consdeu"|search ESTADO_TRX="R"|stats count as Rechazos
new query -> search = index="index_nueva_internet_personas" "*PECconsdeu*" OR "*PEC consdeu*"|search ESTADO_TRX="*R*"|stats count as Rechazos