[systemd-devel] Fwd: Remove specific journal file filter
mihir bhatt
mihirbhatt1001 at gmail.com
Wed Jun 16 17:54:55 UTC 2021
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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210616/3cdbc1c4/attachment.htm>
More information about the systemd-devel
mailing list