Fwd: Remove specific journal file filter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Team,

I am using sd_journal_add_match() API to add filter into journal files. Is there any way to remove/modify existing filter rather than remove all using sd_journal_flush_matches().

For example :

Current method:

To remove F_3 : 
sd_journal_add_match( j , "F_1" , 4);  
sd_journal_add_match( j , "F_2" , 4);  
sd_journal_add_match( j , "F_3" , 4);   
sd_journal_add_match( j , "F_4" , 4);
.....

sd_journal_flush_matches().

sd_journal_add_match( j , "F_1" , 4);  
sd_journal_add_match( j , "F_2" , 4); 
sd_journal_add_match( j , "F_4" , 4);
.... N Filters

Thanks in advance,
Mihir Bhatt
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux