Hi Igor,

Whitelisting isn't supported out of the box. Perhaps there will be a
native extension module to manipulate fields as some other users have
also expressed interest.

Unfortunately doing to_csv() and then parse_csv() will not achieve what
you are looking for because the other fields (excluded from the csv field
list) aren't discarded.

Your options are:
* use delete_field() to remove fields you don't want - this is
  blacklisting.
* use xm_perl and create a 10 line perl snippet to do the whitelisting.

Regards,
Botond

On Thu, 21 May 2015 22:23:52 -0300
Igor Gatis <igorga...@gmail.com> wrote:

> I want to output a whitelisted set of fields. I thought of using CSV
> extension to achieve that. Is that possible?
> 
> I tried a ton of to_csv(), parse_csv() but to_json() always include
> original fields. How does to_json() "knows" about fields which were not
> picked while building the CSV? $raw_event = to_csv() seems to make no
> difference.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to