Skip to content

Commit f464ae8

Browse files
committed
Merge pull request #140 from loganknecht/master
Removed all obscured URLs
2 parents d863ea7 + d126639 commit f464ae8

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

examples/searchcommands_app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The app is tested on Splunk 5 and 6. Here is its manifest:
4141
[3] [Python Logging HOWTO](http://docs.python.org/2/howto/logging.html)
4242
[4] [ConfigParser—Configuration file parser](http://docs.python.org/2/library/configparser.html)
4343
[5] [searchbnf.conf](http://docs.splunk.com/Documentation/Splunk/latest/admin/Searchbnfconf)
44-
[6] [Set permissions in the file system](http://goo.gl/1oDT7r)
44+
[6] [Set permissions in the file system](http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/SetPermissions#Set_permissions_in_the_filesystem)
4545

4646
## Installation
4747

examples/searchcommands_app/package/README/logging.conf.spec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# The format of this file is described in this article at Python.org:
33
#
4-
# [Configuration file format](http://goo.gl/K6edZ8)
4+
# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format)
55
#
66
# This file must contain sections called [loggers], [handlers] and [formatters] which identify by name the entities of
77
# 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]
5757

5858
[handlers]
5959
* Specifies a list of handler keys.
60-
* See [logging.handlers](http://goo.gl/9aoOx)
60+
* See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html)
6161

6262
keys = <comma-separated strings>
6363
* A comma-separated list of handlers keys. Each key must have a corresponding [handler_<string>] section in the
@@ -86,7 +86,7 @@ formatter = <string>
8686

8787
[formatters]
8888
* Specifies a list of formatter keys.
89-
* See [logging.formatters](http://goo.gl/z5CBR3)
89+
* See [logging.formatters](https://docs.python.org/2/howto/logging.html#formatters)
9090

9191
keys = <comma-separated strings>
9292
* A comma-separated list of formatter keys. Each key must have a corresponding [formatter_<string>] section in the
@@ -105,12 +105,12 @@ datefmt = <string>
105105
* The strftime-compatible date/time format string. If empty, the package substitutes ISO8601 format date/times.
106106
* An example ISO8601 date/time is datetime(2015, 2, 6, 15, 53, 36, 786309).isoformat() ==
107107
* '2015-02-06T15:53:36.786309'. For a complete list of formatting directives, see section [strftime() and strptime()
108-
* Behavior](http://goo.gl/6zUAGv)
108+
* Behavior](https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior)
109109
* Defaults to empty.
110110

111111
format = <string>
112112
* The overall format string. This string uses %(<dictionary key>)s styled string substitution; the possible keys are
113-
* documented in [LogRecord](http://goo.gl/qW83Dg) attributes. The following format string will log the time in a
113+
* documented in [LogRecord](https://docs.python.org/2/library/logging.html#logging.LogRecord) attributes. The following format string will log the time in a
114114
* human-readable format, the severity of the message, and the contents of the message, in that order:
115115
* format = '%(asctime)s - %(levelname)s - %(message)s'
116116
* A value is required.

examples/searchcommands_app/package/default/logging.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# The format and semantics of this file are described in this article at Python.org:
33
#
4-
# [Configuration file format](http://goo.gl/K6edZ8)
4+
# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format)
55
#
66
[loggers]
77
keys = root, splunklib, CountMatchesCommand, GenerateHelloCommand, GenerateTextCommand, SimulateCommand, SumCommand
@@ -47,7 +47,7 @@ handlers = app ; Default: stderr
4747
propagate = 0 ; Default: 1
4848

4949
[handlers]
50-
# See [logging.handlers](http://goo.gl/9aoOx)
50+
# See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html)
5151
keys = app, splunklib, stderr
5252

5353
[handler_app]

examples/searchcommands_template/default/logging.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# The format of this file is described in this article at Python.org:
33
#
4-
# [Configuration file format](http://goo.gl/K6edZ8)
4+
# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format)
55
#
66
[loggers]
77
keys = root, splunklib, %(command.title())Command

splunklib/searchcommands/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class Option(property):
238238
**Example:**
239239
240240
Long form. Useful when you wish to manage the option value and its deleter/getter/setter side-effects yourself. You
241-
must provide a getter and a setter. If your :code:`Option` requires `destruction <http://goo.gl/4VSm1c>`_ you must
241+
must provide a getter and a setter. If your :code:`Option` requires `destruction <https://docs.python.org/2/reference/datamodel.html#object.__del__>`_ you must
242242
also provide a deleter. You must be prepared to accept a value of :const:`None` which indicates that your
243243
:code:`Option` is unset.
244244

splunklib/searchcommands/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def configure_logging(logger_name, filename=None):
6161
:returns: The named logger and the location of the logging configuration file loaded.
6262
:rtype: tuple
6363
64-
.. _ConfigParser format: http://goo.gl/K6edZ8
64+
.. _ConfigParser format: https://docs.python.org/2/library/logging.config.html#configuration-file-format
6565
6666
"""
6767
if filename is None:

splunklib/searchcommands/reporting_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def fix_up(cls, command):
255255
f = vars(command)[b'map'] # Function backing the map method
256256

257257
# EXPLANATION OF PREVIOUS STATEMENT: There is no way to add custom attributes to methods. See [Why does
258-
# setattr fail on a method](http://goo.gl/aiOsqh) for a discussion of this issue.
258+
# setattr fail on a method](http://stackoverflow.com/questions/7891277/why-does-setattr-fail-on-a-bound-method) for a discussion of this issue.
259259

260260
try:
261261
settings = f._settings

splunklib/searchcommands/search_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ def iteritems(self):
10341034
def dispatch(command_class, argv=sys.argv, input_file=sys.stdin, output_file=sys.stdout, module_name=None):
10351035
""" Instantiates and executes a search command class
10361036
1037-
This function implements a `conditional script stanza <http://goo.gl/OFaox6>`_ based on the value of
1037+
This function implements a `conditional script stanza <https://docs.python.org/2/library/__main__.html>`_ based on the value of
10381038
:code:`module_name`::
10391039
10401040
if module_name is None or module_name == '__main__':

tests/searchcommands/apps/app_with_logging_configuration/default/alternative-logging.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# The format and semantics of this file are described in this article at Python.org:
33
#
4-
# [Configuration file format](http://goo.gl/K6edZ8)
4+
# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format)
55
#
66
[loggers]
77
keys = root, splunklib, SearchCommand
@@ -23,7 +23,7 @@ handlers = app ; Default: stderr
2323
propagate = 0 ; Default: 1
2424

2525
[handlers]
26-
# See [logging.handlers](http://goo.gl/9aoOx)
26+
# See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html)
2727
keys = app, splunklib, stderr
2828

2929
[handler_app]

tests/searchcommands/apps/app_with_logging_configuration/default/logging.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# The format and semantics of this file are described in this article at Python.org:
33
#
4-
# [Configuration file format](http://goo.gl/K6edZ8)
4+
# [Configuration file format](https://docs.python.org/2/library/logging.config.html#configuration-file-format)
55
#
66
[loggers]
77
keys = root, splunklib, SearchCommand
@@ -23,7 +23,7 @@ handlers = app ; Default: stderr
2323
propagate = 0 ; Default: 1
2424

2525
[handlers]
26-
# See [logging.handlers](http://goo.gl/9aoOx)
26+
# See [logging.handlers](https://docs.python.org/2/library/logging.handlers.html)
2727
keys = app, splunklib, stderr
2828

2929
[handler_app]

0 commit comments

Comments
 (0)