I found a solution, just not sure I understand why. I had to specify the output field: index=main (sourcetype="vendor_sales" OR sourcetype="access_combined_wcookie")
| lookup productDetails productId AS productId OUTPUT productPrice
| lookup productDetails productCode AS Code OUTPUT productPrice
| timechart count(productPrice) by sourcetype The problem has something to do with the overlap in fields. When the OUTPUT is not specified, every field besides the one used for INPUT is added to events. So that means for events with a productId, both the productPrice and productCode fields were added. And for events with a Code field, both productPrice and productId were added. But the new productCode and productId fields somehow interfere with each other, breaking the entire search. Because if I try to make all events have all 3 fields (id, code and price), I do this: index=main (sourcetype="vendor_sales" OR sourcetype="access_combined_wcookie")
| lookup productDetails productCode AS Code OUTPUT productPrice productId
| lookup productDetails productId AS productId OUTPUT productPrice productCode
| timechart count(productPrice) by sourcetype and then all counts go to 0. Update: The solution listed above only works with a Verbose search. If I switch to a Fast or Smart Search, the counts go back to 0. I think maybe the solution to this is "don't use 2 lookups..." Update 2 This is a known issue detailed here. The real solution was to change my limits.conf file - that fixed everything.
... View more