All Apps and Add-ons

using if or where conditions to add new entry

dxw350
Path Finder

I am trying to add an entry that is missing from spreadsheets based on paired numbers. If a pair is identified and the output only listed one of the two items, is there a command to add the second item to an entry directly below the first? I have something like this already, but I am having trouble using where, if or other commands to populate the missing entry>

|inputlookup paired_dataset|search application=* host=nyc* OR host=bos*|dedup host| if status="pair identified" (add missing to the line below??)
0 Karma

dxw350
Path Finder

sample output. Trying to append the csv missing row in "pair id" 48 that is out of order and host must be referenced for different purpose

pair id host name status
45 bos03 Smith Complete
45 nyc03 Jones Pending
47 bos06 Smith Pending
47 nyc06 Park Complete
48 nyc07 Smith Complete
48 *** MISSSING**** but in csv spreadsheet
49 bos08 Smith Complete
49 nyc08 Smith Pending

0 Karma

cmerriman
Super Champion

could you give some sample data and expected output?

i think you might be able to do this with appendpipe followed by another stats command to join it all together.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

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 ...