cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Log content for ingest rule contains more than one line

a_chiaravalle
Contributor

Hi Team

From java application server's log (Linux) I want to capture only the rows related to START and END events of some batch.

To do this, I defined a "Log Ingest rule":

a_chiaravalle_0-1716559580181.png

but when I check the result of this rule In the log viewer, I see that "log content" contains other lines other than the START events (bolded).

This is the entire log content with multiple lines:

a_chiaravalle_2-1716558667649.png

I expect to have only one line and I don't have an explanation for this behavior considering that at the end of each line there is a carriage return (\n) character.

Could you please verify what is wrong ?

Thanks and Regards

Antonello Chiaravalle

1 REPLY 1

Mizső
DynaMight Guru
DynaMight Guru

Hi @a_chiaravalle,

Ingest rules is not a filter. With this rule you ingested the entire log file which conatins your START value from the choosen processes. 

I order to drop the unnecessary lines you should set a log drop rule (carefully) to this log ingest rule.

Mizs_0-1716565325929.png

In the log drop rule matcher you should put your log.source and a nagate content filter. In the log viewer you can check the result. You should see only the unwanted loglines in the result. This expession should be in the log drop rule.

Example:

Mizs_2-1716565649312.png

Mizs_3-1716565855589.png

 

I hope it helps.

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Featured Posts