Splunk Search

Splunk Query provided wrong results

Gowtham0809
New Member

Hello,

Splunk query provided in correct responses. I have A query which filters the data on a specific day and provided the results. Here we index the CSV data every day by using CRCSALT= as we need the whole data set to be reindex even if there is no change in data set.

in the Query I have used a Eval command to print a value CAP-M1 , M2, M3 etc for each query outcome as a unique identifier. but by query provided corrects unique values while executing. for Example I have a Query A with unique value CAP-M1 and Query B suppose to print unique value as CAP-M2 but in the query B it keeps providing Value M1 instead of M2.

in the screen shot it suppose to print M4 for all days but its printing various values

Similarly for other searched also. Is this due to some cache memory issue in splunk?

Thanks

alt text

0 Karma

to4kawa
Ultra Champion
|eval Metric_ID="CAP-M4"
|eval ProjectCluster_Name="VRTE Platform"
|join type=inner DNGProjectAreaID max=0 [search index="usa_201920_test" |eval Date=strftime(_time,"%Y-%m-%d")|dedup Date ]

This join will update Metric_ID.
By the way, there are many join.

0 Karma

Gowtham0809
New Member

Thanks for your input,but the same join prints the Value CAP-M1 instead of CAP-M4, irrespective of what eval values been provided, result is CAP-M1, I guess something in spunk memory which is printing CAP-M1 by default in all queries.

Weirdly even without Eval command query results prints CAP-M1.

0 Karma

to4kawa
Ultra Champion
index="usa_201920_test" source=`Source_DNG_ProjectArea`
OR (source=`Source_DNG_RequirementModules` ModuleType="*" )
OR source=`Source_Sys_Validation`
OR source=`Source_RQM_Testcase` 
OR source=`Source_RQM_TestExecution`
OR (source=`Source_RQM_TestcaseResults` Verdict="" OR Verdict!="passed")
OR (source=`Source_DNG_SystemRequirements` SysReqType="System Requirement" )

To be honest, I think it would be faster and more appropriate to focus on source from this results.

0 Karma

to4kawa
Ultra Champion

No, your search results are exactly as you searched

0 Karma

Gowtham0809
New Member

There is no eval command for CAP-M1 or M11 or M7 is defined in the query, It was only M4 defined in the Query. I also get this error "Could not find object id=CAP-M4 " sometimes

The results should me CAp-M4 for all 4 rows.

0 Karma

to4kawa
Ultra Champion

Maybe your huge query is work.
but SPL is simple.
so, I say again. your search results are exactly as you searched

If you don't provide the query, nobody resolve your issue.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

.conf26 Registration is Live: Secure Your Early Bird Pass Now

  Lock in Your Spot: Registration Open for .conf26 in Denver Hello Splunkers, I have exciting news! Your ...

Mile High Learning with Splunk University, Denver, Colorado

If Denver is known for its mile-high elevation, Splunk University is about to raise the bar on technical ...

IT Service Intelligence 5.0 Series: Your Guide to the June Launch

We are excited to announce the June release of Splunk IT Service Intelligence (ITSI) 5.0. This update ...