logstash-output-elasticsearch 7.4.0-java → 7.4.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +3 -0
- data/lib/logstash/outputs/elasticsearch/common.rb +6 -3
- data/lib/logstash/outputs/elasticsearch/http_client.rb +7 -9
- data/lib/logstash/outputs/elasticsearch/http_client/pool.rb +31 -12
- data/lib/logstash/outputs/elasticsearch/template_manager.rb +4 -6
- data/logstash-output-elasticsearch.gemspec +1 -1
- data/spec/es_spec_helper.rb +6 -0
- data/spec/integration/outputs/compressed_indexing_spec.rb +46 -44
- data/spec/integration/outputs/delete_spec.rb +51 -49
- data/spec/integration/outputs/groovy_update_spec.rb +131 -129
- data/spec/integration/outputs/index_version_spec.rb +82 -81
- data/spec/integration/outputs/ingest_pipeline_spec.rb +51 -49
- data/spec/integration/outputs/painless_update_spec.rb +132 -130
- data/spec/integration/outputs/parent_spec.rb +56 -54
- data/spec/integration/outputs/sniffer_spec.rb +5 -2
- data/spec/integration/outputs/templates_5x_spec.rb +81 -82
- data/spec/integration/outputs/templates_spec.rb +81 -81
- data/spec/integration/outputs/update_spec.rb +101 -99
- data/spec/unit/outputs/elasticsearch/http_client/pool_spec.rb +3 -0
- data/spec/unit/outputs/elasticsearch/http_client_spec.rb +1 -1
- data/spec/unit/outputs/elasticsearch/template_manager_spec.rb +13 -25
- metadata +4 -6
@@ -1,18 +1,19 @@
|
|
1
1
|
require_relative "../../../spec/es_spec_helper"
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
if ESHelper.es_version_satisfies?(">= 5")
|
4
|
+
describe "Ingest pipeline execution behavior", :integration => true do
|
5
|
+
subject! do
|
6
|
+
require "logstash/outputs/elasticsearch"
|
7
|
+
settings = {
|
8
|
+
"hosts" => "#{get_host_port()}",
|
9
|
+
"pipeline" => "apache-logs"
|
10
|
+
}
|
11
|
+
next LogStash::Outputs::ElasticSearch.new(settings)
|
12
|
+
end
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
let(:ftw_client) { FTW::Agent.new }
|
15
|
+
let(:ingest_url) { "http://#{get_host_port()}/_ingest/pipeline/apache-logs" }
|
16
|
+
let(:apache_logs_pipeline) { '
|
16
17
|
{
|
17
18
|
"description" : "Pipeline to parse Apache logs",
|
18
19
|
"processors" : [
|
@@ -24,52 +25,53 @@ describe "Ingest pipeline execution behavior", :integration => true, :version_gr
|
|
24
25
|
}
|
25
26
|
]
|
26
27
|
}'
|
27
|
-
|
28
|
+
}
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
before :each do
|
31
|
+
# Delete all templates first.
|
32
|
+
require "elasticsearch"
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
34
|
+
# Clean ES of data before we start.
|
35
|
+
@es = get_client
|
36
|
+
@es.indices.delete_template(:name => "*")
|
36
37
|
|
37
|
-
|
38
|
-
|
38
|
+
# This can fail if there are no indexes, ignore failure.
|
39
|
+
@es.indices.delete(:index => "*") rescue nil
|
39
40
|
|
40
|
-
|
41
|
-
|
42
|
-
|
41
|
+
# delete existing ingest pipeline
|
42
|
+
req = ftw_client.delete(ingest_url)
|
43
|
+
ftw_client.execute(req)
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
# register pipeline
|
46
|
+
req = ftw_client.put(ingest_url, :body => apache_logs_pipeline)
|
47
|
+
req.headers["Content-Type"] = "application/json"
|
48
|
+
ftw_client.execute(req)
|
48
49
|
|
49
|
-
|
50
|
-
|
50
|
+
#TODO: Use esclient
|
51
|
+
#@es.ingest.put_pipeline :id => 'apache_pipeline', :body => pipeline_defintion
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
53
|
+
subject.register
|
54
|
+
subject.multi_receive([LogStash::Event.new("message" => '183.60.215.50 - - [01/Jun/2015:18:00:00 +0000] "GET /scripts/netcat-webserver HTTP/1.1" 200 182 "-" "Mozilla/5.0 (compatible; EasouSpider; +http://www.easou.com/search/spider.html)"')])
|
55
|
+
@es.indices.refresh
|
55
56
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
#Wait or fail until everything's indexed.
|
58
|
+
Stud::try(20.times) do
|
59
|
+
r = @es.search
|
60
|
+
insist { r["hits"]["total"] } == 1
|
61
|
+
end
|
60
62
|
end
|
61
|
-
end
|
62
63
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
64
|
+
it "indexes using the proper pipeline" do
|
65
|
+
results = @es.search(:index => 'logstash-*', :q => "message:\"netcat\"")
|
66
|
+
insist { results["hits"]["total"] } == 1
|
67
|
+
insist { results["hits"]["hits"][0]["_source"]["response"] } == "200"
|
68
|
+
insist { results["hits"]["hits"][0]["_source"]["bytes"] } == "182"
|
69
|
+
insist { results["hits"]["hits"][0]["_source"]["verb"] } == "GET"
|
70
|
+
insist { results["hits"]["hits"][0]["_source"]["request"] } == "/scripts/netcat-webserver"
|
71
|
+
insist { results["hits"]["hits"][0]["_source"]["auth"] } == "-"
|
72
|
+
insist { results["hits"]["hits"][0]["_source"]["ident"] } == "-"
|
73
|
+
insist { results["hits"]["hits"][0]["_source"]["clientip"] } == "183.60.215.50"
|
74
|
+
insist { results["hits"]["hits"][0]["_source"]["junkfieldaaaa"] } == nil
|
75
|
+
end
|
74
76
|
end
|
75
77
|
end
|
@@ -1,148 +1,150 @@
|
|
1
1
|
require_relative "../../../spec/es_spec_helper"
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
if ESHelper.es_version_satisfies?(">= 5")
|
4
|
+
describe "Update actions using painless scripts", :integration => true, :update_tests => 'painless' do
|
5
|
+
require "logstash/outputs/elasticsearch"
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
before :each do
|
19
|
-
@es = get_client
|
20
|
-
# Delete all templates first.
|
21
|
-
# Clean ES of data before we start.
|
22
|
-
@es.indices.delete_template(:name => "*")
|
23
|
-
# This can fail if there are no indexes, ignore failure.
|
24
|
-
@es.indices.delete(:index => "*") rescue nil
|
25
|
-
@es.index(
|
26
|
-
:index => 'logstash-update',
|
27
|
-
:type => 'logs',
|
28
|
-
:id => "123",
|
29
|
-
:body => { :message => 'Test', :counter => 1 }
|
30
|
-
)
|
31
|
-
@es.indices.refresh
|
32
|
-
end
|
33
|
-
|
34
|
-
context "scripted updates" do
|
35
|
-
it "should increment a counter with event/doc 'count' variable" do
|
36
|
-
subject = get_es_output({ 'document_id' => "123", 'script' => 'scripted_update', 'script_type' => 'file' })
|
37
|
-
subject.register
|
38
|
-
subject.multi_receive([LogStash::Event.new("count" => 2)])
|
39
|
-
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
40
|
-
insist { r["_source"]["counter"] } == 3
|
7
|
+
def get_es_output( options={} )
|
8
|
+
settings = {
|
9
|
+
"manage_template" => true,
|
10
|
+
"index" => "logstash-update",
|
11
|
+
"template_overwrite" => true,
|
12
|
+
"hosts" => get_host_port(),
|
13
|
+
"action" => "update",
|
14
|
+
"script_lang" => "painless"
|
15
|
+
}
|
16
|
+
LogStash::Outputs::ElasticSearch.new(settings.merge!(options))
|
41
17
|
end
|
42
18
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
19
|
+
before :each do
|
20
|
+
@es = get_client
|
21
|
+
# Delete all templates first.
|
22
|
+
# Clean ES of data before we start.
|
23
|
+
@es.indices.delete_template(:name => "*")
|
24
|
+
# This can fail if there are no indexes, ignore failure.
|
25
|
+
@es.indices.delete(:index => "*") rescue nil
|
26
|
+
@es.index(
|
27
|
+
:index => 'logstash-update',
|
28
|
+
:type => 'logs',
|
29
|
+
:id => "123",
|
30
|
+
:body => { :message => 'Test', :counter => 1 }
|
31
|
+
)
|
32
|
+
@es.indices.refresh
|
49
33
|
end
|
50
34
|
|
51
|
-
|
52
|
-
|
53
|
-
'document_id' => "123",
|
54
|
-
|
55
|
-
|
56
|
-
'
|
57
|
-
|
58
|
-
|
59
|
-
subject.multi_receive([LogStash::Event.new("counter" => 3 )])
|
60
|
-
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
61
|
-
insist { r["_source"]["counter"] } == 4
|
62
|
-
end
|
35
|
+
context "scripted updates" do
|
36
|
+
it "should increment a counter with event/doc 'count' variable" do
|
37
|
+
subject = get_es_output({ 'document_id' => "123", 'script' => 'scripted_update', 'script_type' => 'file' })
|
38
|
+
subject.register
|
39
|
+
subject.multi_receive([LogStash::Event.new("count" => 2)])
|
40
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
41
|
+
insist { r["_source"]["counter"] } == 3
|
42
|
+
end
|
63
43
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
})
|
72
|
-
subject.register
|
73
|
-
subject.multi_receive([LogStash::Event.new("counter" => 3 )])
|
74
|
-
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
75
|
-
insist { r["_source"]["counter"] } == 4
|
76
|
-
end
|
44
|
+
it "should increment a counter with event/doc '[data][count]' nested variable" do
|
45
|
+
subject = get_es_output({ 'document_id' => "123", 'script' => 'scripted_update_nested', 'script_type' => 'file' })
|
46
|
+
subject.register
|
47
|
+
subject.multi_receive([LogStash::Event.new("data" => { "count" => 3 })])
|
48
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
49
|
+
insist { r["_source"]["counter"] } == 4
|
50
|
+
end
|
77
51
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
end
|
52
|
+
it "should increment a counter with event/doc 'count' variable with inline script" do
|
53
|
+
subject = get_es_output({
|
54
|
+
'document_id' => "123",
|
55
|
+
'script' => 'ctx._source.counter += params.event.counter',
|
56
|
+
'script_lang' => 'painless',
|
57
|
+
'script_type' => 'inline'
|
58
|
+
})
|
59
|
+
subject.register
|
60
|
+
subject.multi_receive([LogStash::Event.new("counter" => 3 )])
|
61
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
62
|
+
insist { r["_source"]["counter"] } == 4
|
63
|
+
end
|
91
64
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
end
|
106
|
-
|
107
|
-
context "when update with upsert" do
|
108
|
-
it "should create new documents with provided upsert" do
|
109
|
-
subject = get_es_output({ 'document_id' => "456", 'upsert' => '{"message": "upsert message"}' })
|
110
|
-
subject.register
|
111
|
-
subject.multi_receive([LogStash::Event.new("message" => "sample message here")])
|
112
|
-
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "456", :refresh => true)
|
113
|
-
insist { r["_source"]["message"] } == 'upsert message'
|
114
|
-
end
|
65
|
+
it "should increment a counter with event/doc 'count' variable with event/doc as upsert and inline script" do
|
66
|
+
subject = get_es_output({
|
67
|
+
'document_id' => "123",
|
68
|
+
'doc_as_upsert' => true,
|
69
|
+
'script' => 'if( ctx._source.containsKey("counter") ){ ctx._source.counter += params.event.counter; } else { ctx._source.counter = params.event.counter; }',
|
70
|
+
'script_lang' => 'painless',
|
71
|
+
'script_type' => 'inline'
|
72
|
+
})
|
73
|
+
subject.register
|
74
|
+
subject.multi_receive([LogStash::Event.new("counter" => 3 )])
|
75
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
76
|
+
insist { r["_source"]["counter"] } == 4
|
77
|
+
end
|
115
78
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
79
|
+
it "should, with new doc, set a counter with event/doc 'count' variable with event/doc as upsert and inline script" do
|
80
|
+
subject = get_es_output({
|
81
|
+
'document_id' => "456",
|
82
|
+
'doc_as_upsert' => true,
|
83
|
+
'script' => 'if( ctx._source.containsKey("counter") ){ ctx._source.counter += params.event.counter; } else { ctx._source.counter = params.event.counter; }',
|
84
|
+
'script_lang' => 'painless',
|
85
|
+
'script_type' => 'inline'
|
86
|
+
})
|
87
|
+
subject.register
|
88
|
+
subject.multi_receive([LogStash::Event.new("counter" => 3 )])
|
89
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "456", :refresh => true)
|
90
|
+
insist { r["_source"]["counter"] } == 3
|
91
|
+
end
|
123
92
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
93
|
+
it "should increment a counter with event/doc 'count' variable with indexed script" do
|
94
|
+
@es.put_script lang: 'painless', id: 'indexed_update', body: { script: 'ctx._source.counter += params.event.count' }
|
95
|
+
subject = get_es_output({
|
96
|
+
'document_id' => "123",
|
97
|
+
'script' => 'indexed_update',
|
98
|
+
'script_lang' => 'painless',
|
99
|
+
'script_type' => 'indexed'
|
100
|
+
})
|
101
|
+
subject.register
|
102
|
+
subject.multi_receive([LogStash::Event.new("count" => 4 )])
|
103
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "123", :refresh => true)
|
104
|
+
insist { r["_source"]["counter"] } == 5
|
105
|
+
end
|
106
|
+
end
|
129
107
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
108
|
+
context "when update with upsert" do
|
109
|
+
it "should create new documents with provided upsert" do
|
110
|
+
subject = get_es_output({ 'document_id' => "456", 'upsert' => '{"message": "upsert message"}' })
|
111
|
+
subject.register
|
112
|
+
subject.multi_receive([LogStash::Event.new("message" => "sample message here")])
|
113
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "456", :refresh => true)
|
114
|
+
insist { r["_source"]["message"] } == 'upsert message'
|
115
|
+
end
|
116
|
+
|
117
|
+
it "should create new documents with event/doc as upsert" do
|
118
|
+
subject = get_es_output({ 'document_id' => "456", 'doc_as_upsert' => true })
|
119
|
+
subject.register
|
120
|
+
subject.multi_receive([LogStash::Event.new("message" => "sample message here")])
|
121
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "456", :refresh => true)
|
122
|
+
insist { r["_source"]["message"] } == 'sample message here'
|
123
|
+
end
|
124
|
+
|
125
|
+
it "should fail on documents with event/doc as upsert at external version" do
|
126
|
+
subject = get_es_output({ 'document_id' => "456", 'doc_as_upsert' => true, 'version' => 999, "version_type" => "external" })
|
127
|
+
expect { subject.register }.to raise_error(LogStash::ConfigurationError)
|
128
|
+
end
|
137
129
|
end
|
138
130
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
131
|
+
context "updates with scripted upsert" do
|
132
|
+
it "should create new documents with upsert content" do
|
133
|
+
subject = get_es_output({ 'document_id' => "456", 'script' => 'scripted_update', 'upsert' => '{"message": "upsert message"}', 'script_type' => 'file' })
|
134
|
+
subject.register
|
135
|
+
subject.multi_receive([LogStash::Event.new("message" => "sample message here")])
|
136
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "456", :refresh => true)
|
137
|
+
insist { r["_source"]["message"] } == 'upsert message'
|
138
|
+
end
|
139
|
+
|
140
|
+
it "should create new documents with event/doc as script params" do
|
141
|
+
subject = get_es_output({ 'document_id' => "456", 'script' => 'scripted_upsert', 'scripted_upsert' => true, 'script_type' => 'file' })
|
142
|
+
subject.register
|
143
|
+
subject.multi_receive([LogStash::Event.new("counter" => 1)])
|
144
|
+
@es.indices.refresh
|
145
|
+
r = @es.get(:index => 'logstash-update', :type => 'logs', :id => "456", :refresh => true)
|
146
|
+
insist { r["_source"]["counter"] } == 1
|
147
|
+
end
|
146
148
|
end
|
147
149
|
end
|
148
150
|
end
|
@@ -1,71 +1,73 @@
|
|
1
1
|
require_relative "../../../spec/es_spec_helper"
|
2
2
|
require "logstash/outputs/elasticsearch"
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
{
|
12
|
-
|
13
|
-
|
4
|
+
if ESHelper.es_version_satisfies?("<= 5")
|
5
|
+
shared_examples "a parent indexer" do
|
6
|
+
let(:index) { 10.times.collect { rand(10).to_s }.join("") }
|
7
|
+
let(:type) { 10.times.collect { rand(10).to_s }.join("") }
|
8
|
+
let(:event_count) { 10000 + rand(500) }
|
9
|
+
let(:parent) { "not_implemented" }
|
10
|
+
let(:config) { "not_implemented" }
|
11
|
+
let(:default_headers) {
|
12
|
+
{"Content-Type" => "application/json"}
|
13
|
+
}
|
14
|
+
subject { LogStash::Outputs::ElasticSearch.new(config) }
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
before do
|
17
|
+
# Add mapping and a parent document
|
18
|
+
index_url = "http://#{get_host_port()}/#{index}"
|
19
|
+
ftw = FTW::Agent.new
|
20
|
+
mapping = { "mappings" => { "#{type}" => { "_parent" => { "type" => "#{type}_parent" } } } }
|
21
|
+
ftw.put!("#{index_url}", {:body => mapping.to_json, :headers => default_headers})
|
22
|
+
pdoc = { "foo" => "bar" }
|
23
|
+
ftw.put!("#{index_url}/#{type}_parent/test", {:body => pdoc.to_json, :headers => default_headers})
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
subject.register
|
26
|
+
subject.multi_receive(event_count.times.map { LogStash::Event.new("link_to" => "test", "message" => "Hello World!", "type" => type) })
|
27
|
+
end
|
27
28
|
|
28
29
|
|
29
|
-
|
30
|
-
|
30
|
+
it "ships events" do
|
31
|
+
index_url = "http://#{get_host_port()}/#{index}"
|
31
32
|
|
32
|
-
|
33
|
-
|
33
|
+
ftw = FTW::Agent.new
|
34
|
+
ftw.post!("#{index_url}/_refresh")
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
36
|
+
# Wait until all events are available.
|
37
|
+
Stud::try(10.times) do
|
38
|
+
query = { "query" => { "has_parent" => { "type" => "#{type}_parent", "query" => { "match" => { "foo" => "bar" } } } } }
|
39
|
+
data = ""
|
40
|
+
response = ftw.post!("#{index_url}/_count", {:body => query.to_json, :headers => default_headers})
|
41
|
+
response.read_body { |chunk| data << chunk }
|
42
|
+
result = LogStash::Json.load(data)
|
43
|
+
cur_count = result["count"]
|
44
|
+
insist { cur_count } == event_count
|
45
|
+
end
|
44
46
|
end
|
45
|
-
|
46
|
-
end
|
47
|
+
end
|
47
48
|
|
48
|
-
describe "(http protocol) index events with static parent", :integration => true do
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
49
|
+
describe "(http protocol) index events with static parent", :integration => true do
|
50
|
+
it_behaves_like 'a parent indexer' do
|
51
|
+
let(:parent) { "test" }
|
52
|
+
let(:config) {
|
53
|
+
{
|
54
|
+
"hosts" => get_host_port,
|
55
|
+
"index" => index,
|
56
|
+
"parent" => parent
|
57
|
+
}
|
56
58
|
}
|
57
|
-
|
59
|
+
end
|
58
60
|
end
|
59
|
-
end
|
60
61
|
|
61
|
-
describe "(http_protocol) index events with fieldref in parent value", :integration => true do
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
62
|
+
describe "(http_protocol) index events with fieldref in parent value", :integration => true do
|
63
|
+
it_behaves_like 'a parent indexer' do
|
64
|
+
let(:config) {
|
65
|
+
{
|
66
|
+
"hosts" => get_host_port,
|
67
|
+
"index" => index,
|
68
|
+
"parent" => "%{link_to}"
|
69
|
+
}
|
68
70
|
}
|
69
|
-
|
71
|
+
end
|
70
72
|
end
|
71
73
|
end
|