Hi,

We have a small issue with list.remove_assoc at the moment:
  http://dev.sourcefabric.org/browse/LS-600

So here's another solution. Assuming that the name of the source
you're outputting (not your output function) is "radio", you could
just add this line at some point in its composition, before the output
of course:

radio = map_metadata(fun(m)->[("title",m["title"]),("artist",m["artist"])],
radio)

The map_metadata() operator applies a function to each metadata
packet, and returns another metadata packet to be used instead of the
original one. Instead of removing the album, as in Romain's proposal,
my function only keeps title and artist.

Hope this helps,
-- 
David

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to