I will import the bash_history of the server with wazuh 'localfile'I need to do is create an alert for every new line in the bash_history file
Decoder, rule, agent.conf and localfile settings are complete
But you don't just get the last log, you receive the entire log
I want is there a way to get only the latest logs
■ ■ agent.conf
<localfile>
<location>/root/.bash_history</location>
<log_format>syslog</log_format>
<out_format>$(timestamp) $(hostname) history: $(log)</out_format>
</localfile>
■ ■ local_rules.xml
<group name="history,">
<rule id="100010" level="3">
<decoded_as>history</decoded_as>
<description>history command</description>
</rule>
</group>
■ ■ local_decoder.xml
<decoder name="history">
<program_name>history</program_name>
</decoder>