Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jonnyz32
Copy link
Collaborator

Be able to watch all audit tables. Some sample output from password table.

insert into MANZAN.AUDJRNTS (AUDTYPE, TIME) values ('PASSWORD', TIMESTAMP('2025-04-15 12:23:43.47232'))
Violation type: User name not valid username: ROOT remote ip: 179.27.98.225:53606
insert into MANZAN.AUDJRNTS (AUDTYPE, TIME) values ('PASSWORD', TIMESTAMP('2025-04-15 12:23:59.166144'))
Violation type: User name not valid username: ROOT remote ip: 179.27.98.225:56842
insert into MANZAN.AUDJRNTS (AUDTYPE, TIME) values ('PASSWORD', TIMESTAMP('2025-04-15 12:24:17.285264'))
Violation type: User name not valid username: ROOT remote ip: 179.27.98.225:60394
insert into MANZAN.AUDJRNTS (AUDTYPE, TIME) values ('PASSWORD', TIMESTAMP('2025-04-15 12:24:44.909536'))
Violation type: User name not valid username: ROOT remote ip: 179.27.98.225:35686
insert into MANZAN.AUDJRNTS (AUDTYPE, TIME) values ('PASSWORD', TIMESTAMP('2025-04-15 12:25:03.741536'))
Violation type: User name not valid username: ROOT remote ip: 179.27.98.225:41380
insert into MANZAN.AUDJRNTS (AUDTYPE, TIME) values ('PASSWORD', TIMESTAMP('2025-04-15 12:25:18.3432'))
Violation type: User name not valid username: ROOT remote ip: 179.27.98.225:44778


maxTimestamp.ifPresent(ts -> {
String updateQuery = String.format(
"insert into MANZAN.AUDJRNTS (AUDTYPE, TIME) values ('%s', TIMESTAMP('%s'))",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea: Maybe we should do update instead of insert here or else the table will keep growing? We can adjust this later if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants