diff --git a/examples/searchcommands_app/README.md b/examples/searchcommands_app/README.md index 7cd7f9112..763022f97 100644 --- a/examples/searchcommands_app/README.md +++ b/examples/searchcommands_app/README.md @@ -41,7 +41,7 @@ The app is tested on Splunk 5 and 6. Here is its manifest: [3] [Python Logging HOWTO](http://docs.python.org/2/howto/logging.html) [4] [ConfigParser—Configuration file parser](http://docs.python.org/2/library/configparser.html) [5] [searchbnf.conf](http://docs.splunk.com/Documentation/Splunk/latest/admin/Searchbnfconf) -[6] [Set permissions in the file system](http://goo.gl/1oDT7r) +[6] [Set permissions in the file system](http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/SetPermissions#Set_permissions_in_the_filesystem) ## Installation diff --git a/examples/searchcommands_app/package/README/logging.conf.spec b/examples/searchcommands_app/package/README/logging.conf.spec index 886850811..3f134757b 100644 --- a/examples/searchcommands_app/package/README/logging.conf.spec +++ b/examples/searchcommands_app/package/README/logging.conf.spec @@ -1,7 +1,7 @@ # # The format of this file is described in this article at Python.org: # -# [Configuration file format](http://goo.gl/K6edZ8) +# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format) # # This file must contain sections called [loggers], [handlers] and [formatters] which identify by name the entities of # each type which are defined in the file. For each such entity, there is a separate section which identifies how that @@ -57,7 +57,7 @@ propagate = [0|1] [handlers] * Specifies a list of handler keys. - * See [logging.handlers](http://goo.gl/9aoOx) + * See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html) keys = * A comma-separated list of handlers keys. Each key must have a corresponding [handler_] section in the @@ -86,7 +86,7 @@ formatter = [formatters] * Specifies a list of formatter keys. - * See [logging.formatters](http://goo.gl/z5CBR3) + * See [logging.formatters](https://docs.python.org/2/howto/logging.html#formatters) keys = * A comma-separated list of formatter keys. Each key must have a corresponding [formatter_] section in the @@ -105,12 +105,12 @@ datefmt = * The strftime-compatible date/time format string. If empty, the package substitutes ISO8601 format date/times. * An example ISO8601 date/time is datetime(2015, 2, 6, 15, 53, 36, 786309).isoformat() == * '2015-02-06T15:53:36.786309'. For a complete list of formatting directives, see section [strftime() and strptime() - * Behavior](http://goo.gl/6zUAGv) + * Behavior](https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior) * Defaults to empty. format = * The overall format string. This string uses %()s styled string substitution; the possible keys are - * documented in [LogRecord](http://goo.gl/qW83Dg) attributes. The following format string will log the time in a + * documented in [LogRecord](https://docs.python.org/2/library/logging.html#logging.LogRecord) attributes. The following format string will log the time in a * human-readable format, the severity of the message, and the contents of the message, in that order: * format = '%(asctime)s - %(levelname)s - %(message)s' * A value is required. diff --git a/examples/searchcommands_app/package/default/logging.conf b/examples/searchcommands_app/package/default/logging.conf index 70490f0e1..a772b75de 100644 --- a/examples/searchcommands_app/package/default/logging.conf +++ b/examples/searchcommands_app/package/default/logging.conf @@ -1,7 +1,7 @@ # # The format and semantics of this file are described in this article at Python.org: # -# [Configuration file format](http://goo.gl/K6edZ8) +# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format) # [loggers] keys = root, splunklib, CountMatchesCommand, GenerateHelloCommand, GenerateTextCommand, SimulateCommand, SumCommand @@ -47,7 +47,7 @@ handlers = app ; Default: stderr propagate = 0 ; Default: 1 [handlers] -# See [logging.handlers](http://goo.gl/9aoOx) +# See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html) keys = app, splunklib, stderr [handler_app] diff --git a/examples/searchcommands_template/default/logging.conf b/examples/searchcommands_template/default/logging.conf index fc341991c..39afa6518 100644 --- a/examples/searchcommands_template/default/logging.conf +++ b/examples/searchcommands_template/default/logging.conf @@ -1,7 +1,7 @@ # # The format of this file is described in this article at Python.org: # -# [Configuration file format](http://goo.gl/K6edZ8) +# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format) # [loggers] keys = root, splunklib, %(command.title())Command diff --git a/splunklib/searchcommands/decorators.py b/splunklib/searchcommands/decorators.py index 816bf8df6..c8e5f5608 100644 --- a/splunklib/searchcommands/decorators.py +++ b/splunklib/searchcommands/decorators.py @@ -238,7 +238,7 @@ class Option(property): **Example:** Long form. Useful when you wish to manage the option value and its deleter/getter/setter side-effects yourself. You - must provide a getter and a setter. If your :code:`Option` requires `destruction `_ you must + must provide a getter and a setter. If your :code:`Option` requires `destruction `_ you must also provide a deleter. You must be prepared to accept a value of :const:`None` which indicates that your :code:`Option` is unset. diff --git a/splunklib/searchcommands/environment.py b/splunklib/searchcommands/environment.py index 017f27abc..785042c1b 100644 --- a/splunklib/searchcommands/environment.py +++ b/splunklib/searchcommands/environment.py @@ -61,7 +61,7 @@ def configure_logging(logger_name, filename=None): :returns: The named logger and the location of the logging configuration file loaded. :rtype: tuple - .. _ConfigParser format: http://goo.gl/K6edZ8 + .. _ConfigParser format: https://docs.python.org/2/library/logging.config.html#configuration-file-format """ if filename is None: diff --git a/splunklib/searchcommands/reporting_command.py b/splunklib/searchcommands/reporting_command.py index 7ea97f648..c856ee13e 100644 --- a/splunklib/searchcommands/reporting_command.py +++ b/splunklib/searchcommands/reporting_command.py @@ -255,7 +255,7 @@ def fix_up(cls, command): f = vars(command)[b'map'] # Function backing the map method # EXPLANATION OF PREVIOUS STATEMENT: There is no way to add custom attributes to methods. See [Why does - # setattr fail on a method](http://goo.gl/aiOsqh) for a discussion of this issue. + # setattr fail on a method](http://stackoverflow.com/questions/7891277/why-does-setattr-fail-on-a-bound-method) for a discussion of this issue. try: settings = f._settings diff --git a/splunklib/searchcommands/search_command.py b/splunklib/searchcommands/search_command.py index 24d3ef88c..9f3a0f445 100644 --- a/splunklib/searchcommands/search_command.py +++ b/splunklib/searchcommands/search_command.py @@ -1034,7 +1034,7 @@ def iteritems(self): def dispatch(command_class, argv=sys.argv, input_file=sys.stdin, output_file=sys.stdout, module_name=None): """ Instantiates and executes a search command class - This function implements a `conditional script stanza `_ based on the value of + This function implements a `conditional script stanza `_ based on the value of :code:`module_name`:: if module_name is None or module_name == '__main__': diff --git a/tests/searchcommands/apps/app_with_logging_configuration/default/alternative-logging.conf b/tests/searchcommands/apps/app_with_logging_configuration/default/alternative-logging.conf index a995aa207..9c48bc149 100644 --- a/tests/searchcommands/apps/app_with_logging_configuration/default/alternative-logging.conf +++ b/tests/searchcommands/apps/app_with_logging_configuration/default/alternative-logging.conf @@ -1,7 +1,7 @@ # # The format and semantics of this file are described in this article at Python.org: # -# [Configuration file format](http://goo.gl/K6edZ8) +# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format) # [loggers] keys = root, splunklib, SearchCommand @@ -23,7 +23,7 @@ handlers = app ; Default: stderr propagate = 0 ; Default: 1 [handlers] -# See [logging.handlers](http://goo.gl/9aoOx) +# See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html) keys = app, splunklib, stderr [handler_app] diff --git a/tests/searchcommands/apps/app_with_logging_configuration/default/logging.conf b/tests/searchcommands/apps/app_with_logging_configuration/default/logging.conf index a995aa207..9c48bc149 100644 --- a/tests/searchcommands/apps/app_with_logging_configuration/default/logging.conf +++ b/tests/searchcommands/apps/app_with_logging_configuration/default/logging.conf @@ -1,7 +1,7 @@ # # The format and semantics of this file are described in this article at Python.org: # -# [Configuration file format](http://goo.gl/K6edZ8) +# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format) # [loggers] keys = root, splunklib, SearchCommand @@ -23,7 +23,7 @@ handlers = app ; Default: stderr propagate = 0 ; Default: 1 [handlers] -# See [logging.handlers](http://goo.gl/9aoOx) +# See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html) keys = app, splunklib, stderr [handler_app] diff --git a/tests/searchcommands/apps/app_with_logging_configuration/logging.conf b/tests/searchcommands/apps/app_with_logging_configuration/logging.conf index a995aa207..9c48bc149 100644 --- a/tests/searchcommands/apps/app_with_logging_configuration/logging.conf +++ b/tests/searchcommands/apps/app_with_logging_configuration/logging.conf @@ -1,7 +1,7 @@ # # The format and semantics of this file are described in this article at Python.org: # -# [Configuration file format](http://goo.gl/K6edZ8) +# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format) # [loggers] keys = root, splunklib, SearchCommand @@ -23,7 +23,7 @@ handlers = app ; Default: stderr propagate = 0 ; Default: 1 [handlers] -# See [logging.handlers](http://goo.gl/9aoOx) +# See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html) keys = app, splunklib, stderr [handler_app]