import from file
Posted: Wed Feb 27, 2019 12:06 pm
While using the import from file function
"cat <some file name.xml> | python shipper.py syslog_program:AUREPM_DB_AUD | nc xxx.xxx.xxx.xxx 2057"
it would appear that the file is not being imported in order.
Here is the file contents:
-----BEGIN /emspro/admin/export/cmspro/audit/cmspro_pmon_19690_20190116075707931217374332.xml-----
<?xml version="1.0" encoding="UTF-8"?>
<Audit xmlns="http://xmlns.oracle.com/oracleas/schema ... l-11_2.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema ... l-11_2.xsd">
<Version>11.2</Version>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T13:57:07.935610Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T18:03:33.565170Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T18:23:32.665869Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T20:29:59.835455Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T22:42:36.559344Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T13:51:25.899583Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T15:34:01.952465Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T16:44:44.971339Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T20:24:49.044360Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T07:38:52.878202Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T18:35:04.150208Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T20:37:37.263708Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T20:46:41.536937Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T22:53:46.579045Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-19T07:54:39.647894Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-20T07:58:29.992684Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-20T16:01:47.597532Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-21T15:27:18.488246Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
</Audit>
-----END /emspro/admin/export/cmspro/audit/cmspro_pmon_19690_20190116075707931217374332.xml-----
My dashboard query is "*AUREPM_DB_AUD*".
And the attached picture is what I end up with.
I have tens of tens of thousands of database audit logs that I must maintain for a year, and I need this tool to reflect exactly what is in each log file.
How can this be fixed?
Is this sort of thing happening to every other file that NLS is managing for me (i.e. those files other than manually imported) ?
THanks! in advance for any insight...
"cat <some file name.xml> | python shipper.py syslog_program:AUREPM_DB_AUD | nc xxx.xxx.xxx.xxx 2057"
it would appear that the file is not being imported in order.
Here is the file contents:
-----BEGIN /emspro/admin/export/cmspro/audit/cmspro_pmon_19690_20190116075707931217374332.xml-----
<?xml version="1.0" encoding="UTF-8"?>
<Audit xmlns="http://xmlns.oracle.com/oracleas/schema ... l-11_2.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema ... l-11_2.xsd">
<Version>11.2</Version>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T13:57:07.935610Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T18:03:33.565170Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T18:23:32.665869Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T20:29:59.835455Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-16T22:42:36.559344Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T13:51:25.899583Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T15:34:01.952465Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T16:44:44.971339Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-17T20:24:49.044360Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T07:38:52.878202Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T18:35:04.150208Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T20:37:37.263708Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T20:46:41.536937Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-18T22:53:46.579045Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-19T07:54:39.647894Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-20T07:58:29.992684Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-20T16:01:47.597532Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
<AuditRecord><Audit_Type>1</Audit_Type><Extended_Timestamp>2019-01-21T15:27:18.488246Z</Extended_Timestamp><OS_Process>19690</OS_Process><Action>102</Action><Returncode>0</Returncode>
</AuditRecord>
</Audit>
-----END /emspro/admin/export/cmspro/audit/cmspro_pmon_19690_20190116075707931217374332.xml-----
My dashboard query is "*AUREPM_DB_AUD*".
And the attached picture is what I end up with.
I have tens of tens of thousands of database audit logs that I must maintain for a year, and I need this tool to reflect exactly what is in each log file.
How can this be fixed?
Is this sort of thing happening to every other file that NLS is managing for me (i.e. those files other than manually imported) ?
THanks! in advance for any insight...