Splunk Search

can we fill the Field Values basing on the Other Field Value ?

rakesh_498115
Motivator

Hi..

I have sample log events as follows :

event 1 :

12-10-24:0:0:1 RequestOrder OrderNo=107 Product=Samsung...
..
....
....

event 2 :

12-10-24:0:0:1 OrderProcessed OrderNo=107

...
......

....

Now i have created rex for order status and displayed the following fields . In Orderprocessed log i dont have the info of product ,so my data displayed like this

sourcetype="mylog" ("RequestOrder" OR "OrderProcessed") | table OrderStatus,OrderNo,Product

output :

OrderStatus Orderno Product
RequestOrder 107 Samsung
ProcessOrder 107

Since there is no procuct name info in OrderProcessed log . i couldnt able to display in the table . is there is a way in splunk which we can assign the procduct name basing on the Orderno . for the all the same Ordernos Product Names Should be same ..Can we do it splunk ??

Please help ?

Tags (1)

martin_mueller
SplunkTrust
SplunkTrust

You can do something along the lines of this:

... | eventstats values(Product) as Product by OrderNo
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...