Thanks again to maciep and sundareshr for their input. I've gotten a little closer on this issue, this time revisiting the notion of breaking my query into parts. I can get the behavior I want by doing the following:
(1) {query for first set} | rename src_ip as first_ip | table sid,first_ip | outputlookup mylookup.csv
(2) {query for second set} [| inputlookup mylookup.csv | fields sid] | lookup mylookup.csv sid OUTPUT first_ip
This approach is a variation on the one I tried in my first post, but with the subsearch based on the lookup table itself, rather than running (1) as a subsearch. This allows me to make first_ip a field for every event in the second set matching on sid , with which I can then treat as any other field with stats , timechart , and the like. It'd still be nice to be able to do this in one search, though.
... View more