• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 653
  • Last Modified:

why my get-messagetrackinglog result is maximum spanned over 2 weeks only ?

Hi Guys,

Is there any reason why the script get-messagetrackinglog can only returns the email traffic of maximum 2 weeks not the whole month or years ?
get-messagetrackinglog -Server ExHub01 -Sender "tania@anjinglucu.com" -ResultSize Unlimited | select-object Timestamp, sender, RecipientCount, totalbytes | ft -AutoSize -Wrap

Open in new window

0
jjoz
Asked:
jjoz
  • 3
  • 2
2 Solutions
 
geieeaCommented:
You'd kill the server if you did that. :P
0
 
jjozAuthor Commented:
LOL, ok here's my other finding, by using
Get-TransportServer |select *max* | fl

Open in new window


is it possible ifI set it to Set-TransportServer SV2008 -MessageTrackingLogMaxDirectorySize 1GB -MessageTrackingLogMaxAge 365.00:00:00

means that i can get the result of last year or is it too late already ?
ConnectivityLogMaxAge                  : 30.00:00:00
ConnectivityLogMaxDirectorySize        : 250MB
ConnectivityLogMaxFileSize             : 10MB
ExternalDsnMaxMessageAttachSize        : 10MB
InternalDsnMaxMessageAttachSize        : 10MB
MaxConcurrentMailboxDeliveries         : 7
MaxConcurrentMailboxSubmissions        : 20
MaxConnectionRatePerMinute             : 1200
MaxOutboundConnections                 : 1000
MaxPerDomainOutboundConnections        : 20
MessageTrackingLogMaxAge               : 20.00:00:00
MessageTrackingLogMaxDirectorySize     : 250MB
MessageTrackingLogMaxFileSize          : 10MB
PickupDirectoryMaxHeaderSize           : 64KB
PickupDirectoryMaxMessagesPerMinute    : 100
PickupDirectoryMaxRecipientsPerMessage : 100
QueueMaxIdleTime                       : 00:03:00
ReceiveProtocolLogMaxAge               : 30.00:00:00
ReceiveProtocolLogMaxDirectorySize     : 250MB
ReceiveProtocolLogMaxFileSize          : 10MB
RoutingTableLogMaxAge                  : 7.00:00:00
RoutingTableLogMaxDirectorySize        : 50MB
SendProtocolLogMaxAge                  : 30.00:00:00
SendProtocolLogMaxDirectorySize        : 250MB
SendProtocolLogMaxFileSize             : 10MB

Open in new window

0
 
AkhaterCommented:
as you noticed the default configuration is 2 weeks and you can change this by your command however it will keep them for 1 year from now on what was overwritten is, i'm afraid, gone
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
jjozAuthor Commented:
ah ok, kinda make sense in that way.
0
 
geieeaCommented:
Even if you increased the size of the directory, it would take a long time for the cmdlet to review that much data.

As akhater said, it's too late but if you had been backing up the server, you will have all these logs from the last year.
0
 
jjozAuthor Commented:
ah, ok, that does make sense mate, thanks for the reply.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now