Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
41 views

Incorrect elasticsearch field mapping causes tons of logstash errors (failed to parse field [abc] of type [text])

I've been having an issue on my logstash node where about 5 log sources (linux servers) are generating about 30 logstash-plain.log files every day, each with about 20-30k lines. About 99% of these ...
carlitobrigante's user avatar
0 votes
2 answers
57 views

Rails 7: How to include a nested assosiation in a jsonapi-serializer

I have an author that has many books and a book that belongs to an author in an rails 7 api. I am using "jsonapi-serializer", "~> 2.2" to try and get the author and their books. ...
Ese10's user avatar
  • 19
1 vote
1 answer
43 views

convert csv file with json data inside to a column, rows table in 2nd csv file

Ruby newbtard here... I have an csv file (logevents.csv) that has a "message" column. The "message" column contains rows of json data. Using Ruby, I'd like to convert the json data'...
DLC's user avatar
  • 21
0 votes
1 answer
29 views

ArgumentError: Unknown field error Ruby JSON.parse(json_string, object_class: XYZ)

My Ruby class Routeguide::Rectangle object looks like this, (Pay attention on lo & hi variables, those are objects of class Routeguide::Point) <Routeguide::Rectangle: lo: <Routeguide::Point: ...
Prateek Sen's user avatar
0 votes
1 answer
48 views

Ruby Serialising and deserialising json

I have this two function to serialise and deserialise game state. I got it working okay. But It feels very cluttered and messy. Is there a better approach of doing this? There is two different class ...
JW Gim's user avatar
  • 1
0 votes
1 answer
42 views

Sinatra doesn't parse Slack interactive content payload

I'm trying to use Slack interactive content to send the response of a button into a Sinatra app but the body doesn't get de-serialized. Whenever I try to use the Slack message button I receive this ...
Alvaro's user avatar
  • 39
0 votes
3 answers
140 views

Logstash replace colon with arrow

My goal is to read data from kinesis and upload csv file on s3, but in csv file arrow(=>) is coming in json data insted of colon(:) Logstash config file input { kinesis { application_name =&...
Nishant Dixit's user avatar
0 votes
1 answer
55 views

Cannot use the helper method `current_user` in devise

I am building a simple todo app with nextjs and rails. I am using devise for user authentication, but I can't use current_user. Specifically, I am using JSON API Serializer to return user information ...
Tsubasa's user avatar
1 vote
1 answer
136 views

Gzip a single field in json in Ruby

Say I have a ruby Hash with a single property that is a very large string. It's so large that compressing the string may make sense. Compressing the string is trivial using ActiveSupport::Gzip....
Mike Snare's user avatar
0 votes
0 answers
59 views

Recover from Rails JSON ParserError Caused by Tabs

What is the best way to recover from JSON with illegal characters (like tabs). Would it be reasonable to simply escape the tabs on failure? Please advise: module ActiveSupport module JSON class ...
jrhicks's user avatar
  • 14.9k
0 votes
0 answers
70 views

Fluentd error log config file format RegEX

My error: [warn]: #0 pattern not matched: "Oct 3 17:23:12 dc2prepzeebe03 broker[12925]: {\"severity\":\"DEBUG\",\"logging.googleapis.com/sourceLocation\":{\"...
Jeyhun F. Aslanov's user avatar
0 votes
0 answers
34 views

Deep search for a value in a hash [duplicate]

I would like to analyze several hashes to extract certain specific information. These hashes have a global tree structure, however each of the branches of this tree structure is not always present in ...
h3lt3r-sk3lt3r's user avatar
0 votes
2 answers
151 views

MONGO::Error::MaxBSONSize : The document exceeds maximum allows BSONB object after serialization

when i run my ruby script which insert a multiple Json array inside a multiple documents, occur an issue: "MONGO::Error::MaxBSONSize : The document exceeds maximum allows BSONB object after ...
JACKoJONS's user avatar
0 votes
0 answers
17 views

insert json array inside mongoDB document [duplicate]

i make a ruby script which generate array json file. i want to store them inside a single mongoDb document, how can i do this? ruby generate json data like: { {key1 : value1} {key2 : value2} {key3 : ...
JACKoJONS's user avatar
0 votes
1 answer
153 views

Insert many json file inside one document in mongoDB

i have a question: but how can i insert many json files inside one document collection? I have a ruby script connected with mongoDB which generate json files for each ID product. In mongo i should ...
JACKoJONS's user avatar

15 30 50 per page
1
2 3 4 5
224