Getting Data In

monitoring /dev/console /dev/tty


Has anyone figured out how to monitor /dev/console?

Splunk Employee
Splunk Employee

Can you be more specific as to why you want to monitor /dev/console and what you want to monitor for?

If you have root, in Python you can use read() or to open /dev/console, which you could use in a scripted input:

f = open('/dev/console', 'r')
# do stuff like read()
0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!