![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SELF-made site for courseware | iBot | UNIX and Linux RSS News | 0 | 06-12-2008 04:40 PM |
| monitor changes made by root | scriptarg | UNIX for Dummies Questions & Answers | 0 | 07-08-2007 10:42 AM |
| Made command into a script but now won't run | patwa | UNIX for Dummies Questions & Answers | 9 | 06-15-2007 09:28 PM |
| Can this be made into one single line? | nmsinghe | Shell Programming and Scripting | 6 | 09-20-2002 11:58 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Help - Made a serious admin error
Hello, I am a newbie to Unix administration (specifically Solaris 9). I have everything setup properly for auditing but I neglected to realize I needed to start a new logfile each week. Thus the one logfile grew to about 2.5GB before the auditreduce command could no longer process the file.
Does anyone know of a way to split a raw binary audit file into two parts that are both useable? I attempted to use split but either because the second part did not have appropriate header information or, more likely, because the split was not exactly on a record boundry the second part is unuseable. Please help! |
|
||||
|
Caveat: I know nothing about Solaris audit files, but since there are no answers yet...
dd(1) is a useful tool for dealing with binary data Are the records in the binary file a fixed size? If so, and you have an idea how many records you want to copy from the original file, you could do something like Code:
dd bs=record size count=n if=input file of=1st output file Code:
dd bs=record size skip=n count=m if=input file of=2nd output file |
|
||||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|