ASA configuration command for terminal logging history

how i can configure terminal logging history 256 in ASA
. It was found that “terminal logging history” was not enabled on the firewall virtual contexts.

•      Which command enables this setting
•      If it is required to be configured on all virtual contexts or to the admin context only

I know how to do in Router and Switches but dont know about ASA.
Line con0 / vty 0 x
history size 256
Azhar MohammadNetwork EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

atlas_shudderedSr. Network EngineerCommented:
terminal monitoring is initiated on a connection by connection basis.

To set up, input the following to global

monitor logging

When a new session connection is made, run the following command

terminal monitor

when you no longer wish to receive logging messages to the terminal, run:

no terminal monitor
Azhar MohammadNetwork EngineerAuthor Commented:
what you said its for logging (logs).

simple show history show 20 last command.
  • can we change it to 256 in ASA
. (history)
atlas_shudderedSr. Network EngineerCommented:
You can change the size of the buffer itself:

logging buffer-size * 

Open in new window

where * is the size of the buffer you wish to define in KB
loggin buffer-size 256

Open in new window

defines a buffer limit of 256KB

The logging history size can only be defined for the logging buffer and asdm.  No ability to define for terminal session if that is what you asking.  Also, the default logging buffer size is 4KB.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
atlas_shudderedSr. Network EngineerCommented:
Provided answer to the question regarding workaround and what is available on the device.  Option that asker is looking for is on the machine.  Asker has since be non-responsive.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.