×

We use cookies to help make LingQ better. By visiting the site, you agree to our cookie policy.

image

Programming, Centralized Logging Solution for Google Cloud Platform (Cloud Next '18... (1)

Centralized Logging Solution for Google Cloud Platform (Cloud Next '18... (1)

[MUSIC PLAYING]

MARY KOES: Thank you all for coming

on one of the later speeches of the conference today--

super excited to have you all here.

I'm Mary Koes.

I am a product manager with Stackdriver Logging.

EDUARDO SILVA: Hi.

My name Eduardo.

I'm a software engineer at Treasure Data.

MARY KOES: And we're here to talk to you today

about getting started running a centralized logging

solution on Google Cloud.

And I have to say nothing but my deep love of logs

would convince me to stand up on stage here.

So I'm really excited to get to share with you

why centralized logs can make your life easier,

how to do that in Google Cloud.

Eduardo will talk a little bit about logging in Kubernetes

specifically, and then some insights from managing

logs of scale that we've had--

we've learned, sometimes the hard way, through Google.

So let me see just a show of hands.

Has anyone-- do we have any current Google Cloud

customers in the audience who use Stackdriver Logging?

Awesome.

And another show of hands-- do we have any software engineers

from Google here who use logging in their day-to-day life

at Google?

Yeah, they don't really let us into these.

Oh, we have one.

Yay.

A couple.

So they don't usually let us into these talks,

so that's awesome.

The team that I work with in Pittsburgh

does both the logs to help all of our Cloud customers

manage their operations at scale,

but also the logs that our Google engineers use

for understanding the applications we develop

internal to Google as well.

So let's talk about why logs matter.

Fundamentally, troubleshooting-- anything,

but especially distributed microservices is really hard.

So we have, in the cloud, a bunch of interconnected pieces,

like this puzzle.

And when something goes wrong, it's

really hard to figure out how we need to put them back together.

Logs will give us visibility into our system.

So in the puzzle analogy, they're

the picture on our puzzle pieces here.

And while you could assemble things

one puzzle piece at a time, a centralized log view

will allow you to see all of the picture

at the same time, which will help

you to improve your reliability, performance, and security.

So let's talk about how we actually

deliver on a centralized logging solution running

in Google Cloud.

And I mentioned I am the product manager for Stackdriver

Logging.

That is one of three pillars that we

have within Stackdriver, so we've

got logging, monitoring, and application performance

management, or APM.

And each of these are part of a SaaS ops suite

to help all of you monitor and troubleshoot your applications,

whether they're running on GCP, AWS, or cloud

native infrastructure, and trying to keep

your apps fast and available.

So we have a bunch of different components here.

We have log producers on the one side,

and there are many different ways logs come in

that you care about.

So we have audit logs, which are super special.

We've got platform logs that are sent from individual Google

services like Cloud Load Balancer.

We have open source components that

are creating logs that you might be running

to power your infrastructure in your apps,

and then there are logs that come directly from the apps

themselves.

On the other hand, we've got consumers of logs.

So there are a number of different options

for consuming logs.

One, of course, is Stackdriver Logging.

Some users will also want to consume logs

in a tool like Google BigQuery or save them

for compliance in Google Cloud Storage

or use one of the many different partner applications

that we support, including Sumo Logic, Splunk, and Elk Stack,

just to name a few of the more common ones.

So the log router is what actually glues these two things

together-- the producers and the consumers.

So if I look over here, I've got,

at the top, the log producers.

Everything gets centralized through the logging API.

And then we've got the log router,

which will help us to get the logs to the right endpoint.

And down at the bottom, we have the Stackdriver product

on the left-hand side, and then on the right-hand side,

we have other potential destinations,

whether it's cloud storage, BigQuery, or anywhere else,

which can go through Pub/Sub.

In order to get logs into Stackdriver,

there is zero setup for GCP audit

logs and logs from GCP services, so any

logs that are being created on your behalf by a GCP service.

And then if you want to instrument your code,

you can also use client libraries

to send logs to the API directly.

But the vast majority of our logs

that aren't sent from cloud services

actually go through our open source logging agent, Fluentd.

EDUARDO SILVA: Hello.

Maybe most of you already know what is a logging agent,

but if we go like years ago, we will say that,

and we can think about logging.

The first thing that we can think about is maybe syslog.

Have you used syslog before?

Please raise your hand.

So everybody who raised their hand is over 30, [LAUGHS]

actually.

Yeah.

So logging mechanism exists for a couple of reasons,

maybe because you went to troubleshoot,

you want to monitor something, or understand

what's going on in your applications in your system.

So what we're talking about here, logging is not new.

I think that logging exists from the beginning,

since if you're doing development, you're debugging.

You have some kind of logging mechanism.

If you are deploying your application,

you have some logging mechanism for that.

It could be through syslog, rsyslog, or just writing

to a plain log file in the file system.

But we have current problems now.

In the past, we used to have, like, common messages.

The application is doing A, B, C, D, or it's crashing.

We have some exceptions.

But what happens when you have multiple applications that

generate data in a different way?

For example, if you know Apache web server,

Apache web server creates their own log entry,

saying this is an IP address, this

is a practical version size of the document.

If you look at, for example, MySQL logs, they

look pretty much different.

What kind of query was running?

What's our reception?

How are the tables?

Do we have some charting or things like that?

So if you want to do logging, it's

not because logging is cool.

I think that, honestly, logging is boring from a--

MARY KOES: It's cool.

EDUARDO SILVA: --from a play perspective,

but you have to deal with that, because you have problems

that you need to solve.

So the thing is if you have multiple source of information

that come from different places in different formats,

the ultimate goal that you want to do is data analysis.

So in order to do data analysis, you need a logging agent,

and this logging agent must have different strategies

to deal with data formats, data sources.

One thing is to read log files from the file system.

The other is to listen from TCP or UDP.

If you're using, for example, hardware devices

like firewalls, and they are sending their logs over UDP,

you need to support that too.

So we are moving forward.

We can think about many logging agents,

but the experience here is that Treasure Data, the company

that I work for, we created Fluentd around seven years ago

to solve the whole data collection problem.

And Fluentd is an open source project.

It's fully open source, and right now,

the CNCF, the Cloud Native Computing Foundation,

the goal of this project is it allows you to consume logs

from multiple places with different formats

and ingest back the information on any kind of central database

like Google Stackdriver or your own elastic search

database or MySQL.

In general, as a project and ecosystem,

we have more than 700 plugins.

And I think that from a company perspective,

we maintain like 10 or 20.

And all of the others are made by the community.

Do you know Fluentd?

Is anybody using Fluentd before here?

Good.

We have some users.

MARY KOES: Awesome.

Thanks.

So once we get logs into the centralized logging

API, however that happens, and many times

through our logging agent, our next goal

is to get it to the right destination.

And this is where the log router comes into place.

So we have two kind of different flows for managing

logs through the log router.

One is called log sinks, and that is basically an inclusion

filter, so you're going to say exactly what it is you want

sent to these destinations.

And if you don't say anything, nothing

will go to these destinations.

We can send the same log to BigQuery and Pub/Sub

or to none of the above.

On the other side, we have logs being

sent to Stackdriver, the logging product

and we manage this via exclusion filter.

So if you do nothing, all your logs

will go to Stackdriver logging.

And then if there are certain logs that you don't want to go

there-- either because you don't want anyone in your company

to have access to them or if you don't want to pay for them--

then you can use an exclusion filter

to control what goes into Stackdriver logging.

And that's a pretty big difference

compared to many of the other cloud

platform logging experiences out there.

So I'll call out two important ideas around our log router.

One is that logs can be exported to log sinks,

even if they are excluded from Stackdriver log storage.

So this is something that can be a little bit

tricky to get from our documentation-- we'll work on

that-- but hopefully, clear now.

And then the other thing that's a really powerful tool

is a tool called aggregated exports.

So most of our customers have an organization

with more than one project, and they

want to manage logs across their entire organization.

A special use case here is security, where oftentimes,

the security team wants to see the audit logs

across their entire organization.

And so an aggregated export can be set up either at the folder

level or at the org level.

And it will inherit all of the stuff below it,

so if audit logs are created for a new project that

didn't exist now in the organization,

we will go ahead and include those in the export as well.

And then the last thing I'll talk

about in terms of logging tools is how you

analyze logs with Stackdriver.

And we'll get to a demo here in just a moment,

but Stackdriver Logging supports both basic and advanced

filters.

We also have a tool called Error Reporting

as part of the logging library toolkit

here that will automatically go through your logs and group

like logs together, specifically looking for stack traces

and issues in your code.

And then we also provide the ability

to create alerts and dashboards from logs

by using a tool called Logs-Based Metrics,

and that pairs with Stackdriver Monitoring.

So that's kind of a theme that you'll

hear across the Stackdriver tools

is that while you can use logging by itself

or monitoring by itself or APM tools

by themselves, if you use multiple ones together,

you can actually get something that is more powerful than any

of them individually.

And now my favorite part is demo time.

If we could cut over here, perfect.

All right, so I have a web store running on GKE.

And I can see the logs from my web store.

At first glance, I can see, hey, there are quite a bit of logs,

looks like a lot of errors.

But I'm not really sure where to get

started if there's an issue.

Learn languages from TV shows, movies, news, articles and more! Try LingQ for FREE

Centralized Logging Solution for Google Cloud Platform (Cloud Next '18... (1) متمرکز|ثبت|راه حل|برای|گوگل|ابر|پلتفرم|ابر|بعدی Zentralisierte Protokollierungslösung für Google Cloud Platform (Cloud Next '18... (1) Solución de registro centralizado para Google Cloud Platform (Cloud Next '18... (1) Solution de journalisation centralisée pour Google Cloud Platform (Cloud Next '18... (1) Soluzione di registrazione centralizzata per Google Cloud Platform (Cloud Next '18... (1) Google Cloud Platform向けログ一元管理ソリューション(Cloud Next '18... (1) 구글 클라우드 플랫폼을 위한 중앙 집중식 로깅 솔루션(클라우드 넥스트 '18... (1) Scentralizowane rozwiązanie logowania dla Google Cloud Platform (Cloud Next '18... (1) Solução de registo centralizado para Google Cloud Platform (Cloud Next '18... (1) Централизованное решение для ведения журналов для Google Cloud Platform (Cloud Next '18... (1) Google Cloud Platform için Merkezi Günlükleme Çözümü (Cloud Next '18... (1) Централізоване рішення для ведення логів для хмарної платформи Google (Cloud Next '18)... (1) Google Cloud Platform 的集中日志记录解决方案 (Cloud Next '18...(1) Google Cloud Platform 的集中日誌記錄解決方案 (Cloud Next '18...(1) راه حل ثبت مرکزی برای پلتفرم ابری گوگل (Cloud Next '18... (1)

[MUSIC PLAYING] موسیقی|پخش [موسیقی در حال پخش]

MARY KOES: Thank you all for coming ||متشکرم|شما|همه|برای|آمدن مری کُز: از همه شما بابت آمدنتان متشکرم

on one of the later speeches of the conference today-- در|یکی|از|آن|بعدی|سخنرانی ها|از|آن|کنفرانس|امروز در یکی از سخنرانی‌های بعدی کنفرانس امروز--

super excited to have you all here. فوق العاده|هیجان زده|برای|داشتن|شما|همه|اینجا بسیار هیجان‌زده‌ام که همه شما اینجا هستید.

I'm Mary Koes. من هستم|ماری|کواس من ماری کواس هستم.

I am a product manager with Stackdriver Logging. من|هستم|یک|محصول|مدیر|با|استک‌درایور|لاگ‌گیری من یک مدیر محصول در Stackdriver Logging هستم.

EDUARDO SILVA: Hi. EDUARDO|SILVA|سلام ادواردو سیلوا: سلام.

My name Eduardo. نام من|ادواردو|ادواردو نام من ادواردو است.

I'm a software engineer at Treasure Data. من|یک|نرم افزار|مهندس|در|ترزیر|دیتا من یک مهندس نرم‌افزار در Treasure Data هستم.

MARY KOES: And we're here to talk to you today ||و|ما هستیم|اینجا|به|صحبت کردن|به|شما|امروز ماری کُز: و ما اینجا هستیم تا امروز با شما صحبت کنیم

about getting started running a centralized logging درباره|شروع|شروع کردن|اجرای|یک|متمرکز|لاگ گیری درباره شروع به کار با یک راه‌حل لاگ‌گذاری متمرکز

solution on Google Cloud. راه حل|در|گوگل|ابر در گوگل کلود.

And I have to say nothing but my deep love of logs و|من|دارم|به|بگویم|هیچ چیز|جز|عشق عمیق من|عمیق|عشق|به|چوب ها و باید بگویم هیچ چیز جز عشق عمیق من به لاگ‌ها

would convince me to stand up on stage here. می|قانع کند|مرا|به|ایستادن|بالا|روی|صحنه|اینجا من را متقاعد نمی‌کند که اینجا روی صحنه بایستم.

So I'm really excited to get to share with you پس|من|واقعاً|هیجان زده|به|دریافت کردن|به|به اشتراک گذاشتن|با|شما بنابراین من واقعاً هیجان‌زده‌ام که با شما به اشتراک بگذارم

why centralized logs can make your life easier, چرا|متمرکز|لاگ ها|می توانند|آسان کنند|زندگی شما|زندگی|آسان تر چرا لاگ‌های متمرکز می‌توانند زندگی شما را آسان‌تر کنند,

how to do that in Google Cloud. چگونه|به|انجام|آن|در|گوگل|ابر چگونه می‌توان این کار را در Google Cloud انجام داد.

Eduardo will talk a little bit about logging in Kubernetes ادواردو|خواهد|صحبت|یک|کمی|بیشتر|درباره|لاگ گیری|در|کوبرنتیس ادواردو کمی درباره لاگ‌برداری در کوبرنتیز صحبت خواهد کرد

specifically, and then some insights from managing به طور خاص|و|سپس|برخی|بینش ها|از|مدیریت به‌طور خاص، و سپس برخی بینش‌ها از مدیریت

logs of scale that we've had-- لاگ ها|از|مقیاس|که|ما داشته ایم|داشتیم گزارشات مقیاس که داشته‌ایم--

we've learned, sometimes the hard way, through Google. ما|آموخته‌ایم|گاهی اوقات|آن|سخت|راه|از طریق|گوگل ما آموخته‌ایم، گاهی به سختی، از طریق گوگل.

So let me see just a show of hands. خوب|بگذار|من|ببینم|فقط|یک|نشان|از|دستها پس بگذارید فقط یک نشان از دست‌ها ببینم.

Has anyone-- do we have any current Google Cloud آیا|کسی|(فعل کمکی)|ما|داریم|هیچ|جاری|گوگل|کلود آیا کسی-- آیا مشتریان فعلی گوگل کلود در جمع وجود دارند که از Stackdriver Logging استفاده می‌کنند؟

customers in the audience who use Stackdriver Logging? مشتریان|در|مشخص|جمعیت|که|استفاده می کنند|استک درایور|لاگینگ

Awesome. فوق العاده عالی.

And another show of hands-- do we have any software engineers و|دیگری|نمایش|از|دستها|آیا|ما|داریم|هیچ|نرم افزار|مهندسین و یک بار دیگر دست‌ها را بالا ببرید-- آیا مهندسان نرم‌افزار

from Google here who use logging in their day-to-day life از|گوگل|اینجا|کسانی که|استفاده می کنند|ثبت وقایع|در|زندگی||||زندگی از گوگل اینجا هستند که در زندگی روزمره خود از لاگ‌گذاری استفاده می‌کنند؟

at Google? در|گوگل در گوگل؟

Yeah, they don't really let us into these. آره|آنها|نمی|واقعاً|اجازه می دهند|ما|به داخل|اینها بله، واقعاً اجازه نمی‌دهند که ما به این‌ها وارد شویم.

Oh, we have one. اوه|ما|داریم|یکی اوه، ما یکی داریم.

Yay. یای یاه.

A couple. یک|زوج چند تا.

So they don't usually let us into these talks, پس|آنها|نمی|معمولاً|اجازه می دهند|ما|به|این|گفتگوها بنابراین معمولاً اجازه نمی‌دهند که ما به این گفتگوها وارد شویم,

so that's awesome. پس|آن|فوق العاده است پس این فوق‌العاده است.

The team that I work with in Pittsburgh تیم|تیم|که|من|کار می کنم|با|در|پیتسبورگ تیمی که من با آن در پیتسبورگ کار می‌کنم

does both the logs to help all of our Cloud customers آیا|هر دو|آن|لاگ ها|به|کمک می کند|همه|از|مشتریان|ابری|مشتریان هم لاگ‌هایی را تهیه می‌کند که به همه مشتریان ابری ما کمک می‌کند

manage their operations at scale, مدیریت کردن|عملیات|عملیات|در|مقیاس تا عملیات خود را در مقیاس مدیریت کنند،

but also the logs that our Google engineers use اما|همچنین|آن|لاگ ها|که|ما|گوگل|مهندسان|استفاده می کنند و هم لاگ‌هایی که مهندسان گوگل ما استفاده می‌کنند

for understanding the applications we develop برای|درک|آن|برنامه های|ما|توسعه می دهیم برای درک برنامه‌هایی که توسعه می‌دهیم

internal to Google as well. داخلی|به|گوگل|همچنین|خوب داخلی گوگل نیز.

So let's talk about why logs matter. پس|بیایید|صحبت کنیم|درباره|چرا|لاگ ها|مهم هستند پس بیایید درباره اهمیت لاگ‌ها صحبت کنیم.

Fundamentally, troubleshooting-- anything, به طور بنیادی|عیب یابی|هر چیزی به طور اساسی، عیب‌یابی-- هر چیزی,

but especially distributed microservices is really hard. اما|به ویژه|توزیع شده|میکروسرویس ها|است|واقعاً|سخت اما به ویژه میکروسرویس‌های توزیع‌شده واقعاً سخت است.

So we have, in the cloud, a bunch of interconnected pieces, پس|ما|داریم|در|(حرف تعریف)|ابر|یک|مجموعه|از|به هم پیوسته|قطعات بنابراین ما در ابر، تعدادی قطعه به هم پیوسته داریم,

like this puzzle. مانند|این|معما مثل این معما.

And when something goes wrong, it's و|وقتی|چیزی|می رود|اشتباه|این است و وقتی که چیزی اشتباه می‌شود، این

really hard to figure out how we need to put them back together. واقعاً|سخت|به|فهمیدن|بیرون|چگونه|ما|نیاز داریم|به|قرار دادن|آنها|دوباره|با هم واقعاً سخت است که بفهمیم چگونه باید آنها را دوباره کنار هم بگذاریم.

Logs will give us visibility into our system. لاگ ها|خواهند|بدهند|به ما|دید|به|سیستم ما| لاگ‌ها به ما دیدی به سیستم‌مان می‌دهند.

So in the puzzle analogy, they're پس|در|این|معما|تشبیه|آنها هستند بنابراین در تشبیه معما، آنها

the picture on our puzzle pieces here. این|تصویر|روی|ما|پازل|قطعات|اینجا تصویر روی قطعات پازل ما در اینجا.

And while you could assemble things و|در حالی که|تو|می توانستی|مونتاژ کنی|چیزها و در حالی که می‌توانید چیزها را

one puzzle piece at a time, a centralized log view یک|معما|قطعه|در|یک|زمان|یک|متمرکز|ثبت|نمای قطعه به قطعه سرهم کنید، یک نمای مرکزی از لاگ‌ها

will allow you to see all of the picture خواهد|اجازه دادن|شما|به|دیدن|تمام|از|آن|تصویر به شما این امکان را می‌دهد که تمام تصویر را

at the same time, which will help در|همان|همان|زمان|که|خواهد|کمک کند به طور همزمان ببینید، که به شما کمک خواهد کرد.

you to improve your reliability, performance, and security. شما|به|بهبود بخشید|شما|قابلیت اطمینان|عملکرد|و|امنیت شما می‌توانید قابلیت اطمینان، عملکرد و امنیت خود را بهبود ببخشید.

So let's talk about how we actually خوب|بیایید|صحبت کنیم|درباره|چطور|ما|در واقع پس بیایید در مورد اینکه چگونه واقعاً

deliver on a centralized logging solution running ارائه|در|یک|متمرکز|ثبت|راه حل|در حال اجرا یک راه‌حل ثبت مرکزی را ارائه می‌دهیم که در

in Google Cloud. گوگل کلود اجرا می‌شود.

And I mentioned I am the product manager for Stackdriver و|من|اشاره کردم|من|هستم|(حرف تعریف)|محصول|مدیر|برای|استک‌درایور و من اشاره کردم که مدیر محصول Stackdriver هستم.

Logging. ثبت ورود و خروج ثبت وقایع.

That is one of three pillars that we آن|است|یکی|از|سه|ارکان|که|ما این یکی از سه رکن است که ما

have within Stackdriver, so we've داریم|درون|استک‌درایور|بنابراین|ما در Stackdriver داریم، بنابراین ما

got logging, monitoring, and application performance دریافت کرد|ثبت لاگ|نظارت||برنامه|عملکرد ثبت وقایع، نظارت و مدیریت عملکرد برنامه‌ها را داریم.

management, or APM. مدیریت||مدیریت پروژه پیشرفته یا APM.

And each of these are part of a SaaS ops suite و|هر کدام|از|اینها|هستند|بخشی|از|یک|نرم‌افزار به عنوان خدمت|عملیات|مجموعه و هر یک از اینها بخشی از یک مجموعه عملیات SaaS هستند.

to help all of you monitor and troubleshoot your applications, به|کمک کردن|همه|از|شما|نظارت کردن|و|عیب یابی کردن|برنامه های|کاربردی تا به همه شما کمک کند برنامه‌های خود را نظارت و عیب‌یابی کنید,

whether they're running on GCP, AWS, or cloud آیا|آنها|در حال اجرا|بر روی|GCP|AWS|یا|ابر چه در GCP، AWS، یا زیرساخت ابری اجرا شوند,

native infrastructure, and trying to keep بومی|زیرساخت|و|تلاش کردن|به|حفظ کردن و سعی کنید برنامه‌های خود را سریع و در دسترس نگه دارید.

your apps fast and available. برنامه های|شما|سریع|و|در دسترس

So we have a bunch of different components here. پس|ما|داریم|یک|دسته|از|مختلف|اجزا|اینجا بنابراین ما یک دسته از اجزای مختلف در اینجا داریم.

We have log producers on the one side, ما|داریم|چوب|تولیدکنندگان|در|یک|یک|طرف ما تولیدکنندگان لاگ در یک طرف داریم,

and there are many different ways logs come in و|وجود دارد|هستند|بسیاری|مختلف|روش ها|لاگ ها|وارد می شوند|به و راه‌های مختلفی وجود دارد که لاگ‌ها وارد می‌شوند

that you care about. که|تو|اهمیت میدهی|درباره که برای شما مهم است.

So we have audit logs, which are super special. پس|ما|داریم|حسابرسی|گزارشات|که|هستند|فوق العاده|خاص بنابراین ما لاگ‌های حسابرسی داریم، که بسیار خاص هستند.

We've got platform logs that are sent from individual Google ما|داریم|پلتفرم|لاگ ها|که|هستند|ارسال شده|از|فردی|گوگل ما لاگ‌های پلتفرم داریم که از سرویس‌های فردی گوگل ارسال می‌شوند.

services like Cloud Load Balancer. خدمات|مانند|ابر|بار|متعادل کننده سرویس‌هایی مانند Cloud Load Balancer.

We have open source components that ما|داریم|باز|منبع|اجزا|که ما اجزای متن‌باز داریم که

are creating logs that you might be running هستند|ایجاد کردن|لاگ ها|که|شما|ممکن است|باشید|در حال اجرا لاگ‌هایی ایجاد می‌کنند که ممکن است شما در حال اجرای آن‌ها باشید

to power your infrastructure in your apps, به|قدرت|شما|زیرساخت|در|شما|برنامه ها تا زیرساخت خود را در برنامه‌های خود تأمین کنید.

and then there are logs that come directly from the apps و|سپس|وجود دارد|هستند|لاگ ها|که|می آیند|به طور مستقیم|از|آن|برنامه ها و سپس لاگ‌هایی وجود دارند که مستقیماً از اپلیکیشن‌ها می‌آیند.

themselves. خودشان خودشان.

On the other hand, we've got consumers of logs. در|(حرف تعریف)|دیگر|طرف|ما داریم|داریم|مصرف کنندگان|از|لاگ ها از طرف دیگر، ما مصرف‌کنندگان لاگ‌ها را داریم.

So there are a number of different options پس|آنجا|هستند|یک|تعداد|از|مختلف|گزینه ها بنابراین گزینه‌های مختلفی وجود دارد

for consuming logs. برای|مصرف کردن|لاگ ها برای مصرف لاگ‌ها.

One, of course, is Stackdriver Logging. یکی|از|البته|است|استک‌درایور|لاگ‌گیری یکی از آنها، البته، Stackdriver Logging است.

Some users will also want to consume logs برخی|کاربران|خواهند|همچنین|بخواهند|به|مصرف کردن|لاگ ها برخی از کاربران همچنین می‌خواهند لاگ‌ها را مصرف کنند

in a tool like Google BigQuery or save them در|یک|ابزار|مانند|گوگل|بیگ‌کوری|یا|ذخیره کردن|آنها در ابزاری مانند Google BigQuery یا آنها را ذخیره کنند

for compliance in Google Cloud Storage برای|انطباق|در|گوگل|ابری|ذخیره سازی برای انطباق در Google Cloud Storage

or use one of the many different partner applications یا|استفاده کنید|یکی|از|بسیاری|بسیاری|مختلف|شریک|برنامه های یا از یکی از بسیاری از برنامه‌های شریک مختلف استفاده کنند.

that we support, including Sumo Logic, Splunk, and Elk Stack, که|ما|پشتیبانی می کنیم|شامل|||Splunk|و|| که ما از آن حمایت می‌کنیم، از جمله Sumo Logic، Splunk و Elk Stack،

just to name a few of the more common ones. فقط|به|نام بردن|چند|چند تا|از|آن|بیشتر|رایج|آنها فقط برای نام بردن از چند مورد رایج.

So the log router is what actually glues these two things پس|آن|لاگ|روتر|است|چیزی که|در واقع|چسباننده|این|دو|چیزها بنابراین، روتر لاگ چیزی است که در واقع این دو چیز را

together-- the producers and the consumers. با هم|(حرف تعریف)|تولیدکنندگان|و|(حرف تعریف)|مصرف‌کنندگان به هم متصل می‌کند - تولیدکنندگان و مصرف‌کنندگان.

So if I look over here, I've got, پس|اگر|من|نگاه کنم|به|اینجا|من دارم|دارم بنابراین اگر به اینجا نگاه کنم، من دارم,

at the top, the log producers. در|آن|بالای|آن|چوب|تولیدکنندگان در بالا، تولیدکنندگان لاگ.

Everything gets centralized through the logging API. همه چیز|می شود|متمرکز|از طریق|آن|ثبت|رابط برنامه نویسی کاربردی همه چیز از طریق API لاگ متمرکز می‌شود.

And then we've got the log router, و|سپس|ما داریم|داریم|آن|لاگ|روتر و سپس ما یک مسیریاب لاگ داریم,

which will help us to get the logs to the right endpoint. که|خواهد|کمک|ما|به|دریافت کردن|آن|لاگ ها|به|آن|صحیح|نقطه پایانی که به ما کمک می‌کند تا لاگ‌ها را به نقطه پایانی درست برسانیم.

And down at the bottom, we have the Stackdriver product و|پایین|در|(حرف تعریف)|پایین|ما|داریم|(حرف تعریف)|استک‌درایور|محصول و در پایین، ما محصول Stackdriver را داریم.

on the left-hand side, and then on the right-hand side, در|ال|||طرف|و|سپس|در|ال|||طرف در سمت چپ، و سپس در سمت راست,

we have other potential destinations, ما|داریم|دیگر|بالقوه|مقاصد ما مقاصد بالقوه دیگری داریم,

whether it's cloud storage, BigQuery, or anywhere else, آیا|این|ابر|ذخیره سازی|بیگ‌کوئری|یا|هر جا|دیگر چه در فضای ذخیره‌سازی ابری، BigQuery، یا هر جای دیگری,

which can go through Pub/Sub. که|می تواند|برود|از طریق|| که می‌تواند از طریق Pub/Sub عبور کند.

In order to get logs into Stackdriver, به|منظور|به|دریافت کردن|لاگ ها|به داخل|استک درایور برای وارد کردن لاگ‌ها به Stackdriver,

there is zero setup for GCP audit وجود دارد|است|صفر|تنظیمات|برای|GCP|حسابرسی هیچ تنظیماتی برای حسابرسی GCP وجود ندارد.

logs and logs from GCP services, so any لاگ ها|و|لاگ ها|از|GCP|خدمات|بنابراین|هر لاگ‌ها و لاگ‌های خدمات GCP، بنابراین هر

logs that are being created on your behalf by a GCP service. لاگ ها|که|هستند|در حال|ایجاد شده|بر|شما|behalf|توسط|یک|GCP|سرویس لاگی که به نمایندگی از شما توسط یک خدمت GCP ایجاد می‌شود.

And then if you want to instrument your code, و|سپس|اگر|شما|می خواهید|به|ابزارآلات|شما|کد و سپس اگر می‌خواهید کد خود را ابزارگذاری کنید,

you can also use client libraries شما|می توانید|همچنین|استفاده کنید|مشتری|کتابخانه ها می‌توانید از کتابخانه‌های کلاینت نیز استفاده کنید.

to send logs to the API directly. به|ارسال کردن|لاگ ها|به|آن|API|به طور مستقیم برای ارسال لاگ‌ها به API به‌طور مستقیم.

But the vast majority of our logs اما|(حرف تعریف)|وسیع|اکثریت|از|ما|لاگ ها اما اکثریت قریب به اتفاق لاگ‌های ما

that aren't sent from cloud services که|نیستند|ارسال شده|از|ابری|خدمات که از خدمات ابری ارسال نمی‌شوند

actually go through our open source logging agent, Fluentd. در واقع|برو|از طریق|ما|متن باز|منبع|ثبت|عامل|Fluentd در واقع از طریق عامل لاگ‌برداری متن‌باز ما، Fluentd، عبور می‌کنند.

EDUARDO SILVA: Hello. EDUARDO|SILVA|سلام ادواردو سیلوا: سلام.

Maybe most of you already know what is a logging agent, شاید|بیشتر|از|شما|قبلاً|می‌دانید|چه چیزی|است|یک|ثبت|عامل شاید بیشتر شما قبلاً می‌دانید که عامل لاگ‌برداری چیست,

but if we go like years ago, we will say that, اما|اگر|ما|برویم|مانند|سالها|پیش|ما|خواهیم|بگوییم|آن اما اگر به سال‌ها قبل برگردیم، خواهیم گفت که,

and we can think about logging. و|ما|می‌توانیم|فکر کنیم|درباره|ثبت‌نام و می‌توانیم به لاگ‌برداری فکر کنیم.

The first thing that we can think about is maybe syslog. اولین|اولین|چیز|که|ما|می توانیم|فکر کنیم|درباره|است|شاید|syslog اولین چیزی که می‌توانیم به آن فکر کنیم شاید syslog باشد.

Have you used syslog before? آیا|شما|استفاده کرده اید|syslog|قبل آیا قبلاً از syslog استفاده کرده‌اید؟

Please raise your hand. لطفا|بالا ببرید|شما|دست لطفاً دست خود را بالا ببرید.

So everybody who raised their hand is over 30, [LAUGHS] پس|همه|که|بالا برد|آنها|دست|است|بالای|[می خندد] پس هر کسی که دستش را بالا برده بالای 30 سال دارد، [می‌خندد]

actually. در واقع در واقع.

Yeah. آره بله.

So logging mechanism exists for a couple of reasons, پس|ثبت|مکانیزم|وجود دارد|برای|یک|چند|از|دلایل پس مکانیزم ثبت وجود دارد به دلایل مختلف,

maybe because you went to troubleshoot, شاید|چون|تو|رفتی|به|عیب یابی شاید به این دلیل که شما به عیب‌یابی رفته‌اید,

you want to monitor something, or understand شما|می خواهید|به|نظارت کنید|چیزی|یا|درک کنید شما می‌خواهید چیزی را نظارت کنید یا درک کنید

what's going on in your applications in your system. چه چیزی|در حال وقوع|در|در|شما|برنامه ها|در|شما|سیستم که در برنامه‌های شما در سیستم‌تان چه می‌گذرد.

So what we're talking about here, logging is not new. پس|چه|ما|صحبت کردن|درباره|اینجا|ثبت|است|نه|جدید پس آنچه که در اینجا درباره‌اش صحبت می‌کنیم، ثبت وقایع جدید نیست.

I think that logging exists from the beginning, من|فکر می کنم|که|قطع درختان|وجود دارد|از|شروع|آغاز من فکر می‌کنم که ثبت وقایع از ابتدا وجود داشته است,

since if you're doing development, you're debugging. چون|اگر|تو هستی|انجام دادن|توسعه|تو هستی|اشکال زدایی چون اگر شما در حال توسعه هستید، در حال اشکال‌زدایی هستید.

You have some kind of logging mechanism. شما|دارید|نوعی|نوع|از|ثبت|مکانیزم شما نوعی مکانیزم ثبت وقایع دارید.

If you are deploying your application, اگر|شما|هستید|مستقر می کنید|شما|برنامه اگر شما در حال استقرار برنامه‌تان هستید،

you have some logging mechanism for that. شما|دارید|برخی|ثبت|مکانیزم|برای|آن شما برای آن نوعی مکانیزم ثبت وقایع دارید.

It could be through syslog, rsyslog, or just writing آن|می تواند|باشد|از طریق|syslog|rsyslog|یا|فقط|نوشتن این می‌تواند از طریق syslog، rsyslog، یا فقط نوشتن باشد.

to a plain log file in the file system. به|یک|ساده|لاگ|فایل|در|سیستم|فایل|سیستم به یک فایل لاگ ساده در سیستم فایل.

But we have current problems now. اما|ما|داریم|جاری|مشکلات|اکنون اما اکنون مشکلات فعلی داریم.

In the past, we used to have, like, common messages. در|گذشته|گذشته|ما|عادت داشتیم|به|داشته باشیم|مانند|مشترک|پیام ها در گذشته، ما معمولاً پیام‌های مشترکی داشتیم.

The application is doing A, B, C, D, or it's crashing. برنامه|کاربرد|است|انجام می دهد|A|B|C|D|یا|آن|خراب می شود برنامه در حال انجام A، B، C، D است، یا در حال کرش کردن است.

We have some exceptions. ما|داریم|چند|استثناها ما برخی استثناها داریم.

But what happens when you have multiple applications that اما|چه|اتفاق می‌افتد|وقتی|شما|دارید|چندین|برنامه‌ها|که اما چه اتفاقی می‌افتد زمانی که شما چندین برنامه دارید که

generate data in a different way? تولید|داده|به|یک|متفاوت|روش داده‌ها را به روش‌های مختلف تولید می‌کنند؟

For example, if you know Apache web server, به|مثال|اگر|شما|می‌دانید|آپاچی|وب|سرور به عنوان مثال، اگر شما با سرور وب آپاچی آشنا هستید،

Apache web server creates their own log entry, آپاچی|وب|سرور|ایجاد می کند|آنها|خود|لاگ|ورودی سرور وب آپاچی ورودی‌های لاگ خود را ایجاد می‌کند،

saying this is an IP address, this گفتن|این|است|یک|آی‌پی|آدرس|این که می‌گوید این یک آدرس IP است، این

is a practical version size of the document. است|یک|عملی|نسخه|اندازه|از|این|سند نسخه عملی اندازه سند است.

If you look at, for example, MySQL logs, they اگر|شما|نگاه کنید|به|برای|مثال|MySQL|لاگ ها|آنها اگر به عنوان مثال، لاگ‌های MySQL را بررسی کنید، آنها

look pretty much different. به نظر می رسند|به طور قابل توجهی|خیلی|متفاوت به طور کلی متفاوت به نظر می‌رسند.

What kind of query was running? چه|نوع|از|پرس و جو|بود|در حال اجرا چه نوع کوئری در حال اجرا بود؟

What's our reception? چه چیزی|ما|پذیرش واکنش ما چه بود؟

How are the tables? چطور|هستند|آن|میزها جدول‌ها چطور هستند؟

Do we have some charting or things like that? آیا|ما|داریم|برخی|نمودارها|یا|چیزها|مانند|آن آیا ما نمودار یا چیزهای مشابهی داریم؟

So if you want to do logging, it's پس|اگر|شما|می‌خواهید|به|انجام دهید|ثبت‌نام|این پس اگر می‌خواهید لاگ‌گذاری کنید، این است که

not because logging is cool. نه|زیرا|ثبت|است|جالب این به این دلیل نیست که لاگ‌گذاری جالب است.

I think that, honestly, logging is boring from a-- من|فکر می کنم|که|صادقانه|ثبت وقایع|است|خسته کننده|از|یک من فکر می‌کنم که، صادقانه بگویم، لاگ‌گذاری از یک نظر خسته‌کننده است--

MARY KOES: It's cool. ||این|باحال ماری کُز: این عالیه.

EDUARDO SILVA: --from a play perspective, EDUARDO|SILVA|از|یک|نمایش|دیدگاه ادواردو سیلوا: --از منظر نمایش,

but you have to deal with that, because you have problems اما|تو|داری|به|کنار بیایی|با|آن|زیرا|تو|داری|مشکلات اما شما باید با این موضوع کنار بیایید، چون شما مشکلاتی دارید

that you need to solve. که|تو|نیاز داری|به|حل کنی که باید حل کنید.

So the thing is if you have multiple source of information پس|آن|موضوع|است|اگر|شما|داشته باشید|چندین|منبع|از|اطلاعات پس موضوع این است که اگر شما منابع اطلاعاتی متعددی داشته باشید

that come from different places in different formats, که|می آیند|از|متفاوت|مکان ها|به|متفاوت|فرمت ها که از مکان‌های مختلف در فرمت‌های مختلف می‌آیند,

the ultimate goal that you want to do is data analysis. (مفرد)|نهایی|هدف|که|شما|می خواهید|(حرف اضافه)|انجام دهید|است|داده|تحلیل هدف نهایی که می‌خواهید انجام دهید، تحلیل داده‌ها است.

So in order to do data analysis, you need a logging agent, پس|در|برای|به|انجام دادن|داده|تحلیل|شما|نیاز دارید|یک|ثبت|عامل بنابراین برای انجام تحلیل داده‌ها، به یک عامل ثبت نیاز دارید,

and this logging agent must have different strategies |این|ثبت|عامل|باید|داشته باشد|متفاوت|استراتژی ها و این عامل ثبت باید استراتژی‌های مختلفی داشته باشد

to deal with data formats, data sources. برای|برخورد|با|داده|فرمت های|داده|منابع برای مقابله با فرمت‌های داده و منابع داده.

One thing is to read log files from the file system. یک|چیز|است|به|خواندن|لاگ|فایل ها|از|سیستم|فایل|سیستم یک چیز این است که فایل‌های لاگ را از سیستم فایل بخوانید.

The other is to listen from TCP or UDP. دیگر|دیگری|است|به|گوش دادن|از|TCP|یا|UDP چیز دیگر این است که از TCP یا UDP گوش دهید.

If you're using, for example, hardware devices اگر|شما|استفاده می کنید|برای|مثال|سخت افزار|دستگاه ها اگر شما از دستگاه‌های سخت‌افزاری استفاده می‌کنید،

like firewalls, and they are sending their logs over UDP, مانند|دیوارهای آتش|و|آنها|هستند|ارسال کردن|آنها|لاگ ها|بر روی|UDP مانند فایروال‌ها، و آن‌ها لاگ‌های خود را از طریق UDP ارسال می‌کنند،

you need to support that too. شما|نیاز|به|حمایت کردن|آن|نیز شما باید از آن نیز پشتیبانی کنید.

So we are moving forward. پس|ما|هستیم|حرکت کردن|به جلو پس ما به جلو حرکت می‌کنیم.

We can think about many logging agents, ما|می‌توانیم|فکر کنیم|درباره|بسیاری از|ثبت|عوامل ما می‌توانیم به بسیاری از عاملان ثبت‌نام فکر کنیم,

but the experience here is that Treasure Data, the company اما|این|تجربه|در اینجا|است|که|Treasure|Data|این|شرکت اما تجربه اینجا این است که Treasure Data، شرکتی که

that I work for, we created Fluentd around seven years ago که|من|کار می کنم|برای|ما|ایجاد کردیم|Fluentd|حدود|هفت|سال|پیش من برای آن کار می‌کنم، حدود هفت سال پیش Fluentd را ایجاد کردیم

to solve the whole data collection problem. به|حل کردن|(حرف تعریف)|کل|داده|جمع آوری|مشکل تا مشکل جمع‌آوری داده‌ها را حل کنیم.

And Fluentd is an open source project. و|Fluentd|است|یک|متن باز|منبع|پروژه و Fluentd یک پروژه متن باز است.

It's fully open source, and right now, این|به طور کامل|باز|منبع|و|درست|اکنون این پروژه کاملاً متن باز است و در حال حاضر,

the CNCF, the Cloud Native Computing Foundation, (مخفف)|بنیاد محاسبات ابری بومی||ابری|بومی|محاسبات|بنیاد CNCF، بنیاد محاسبات ابری بومی,

the goal of this project is it allows you to consume logs این|هدف|این||پروژه|است|این|اجازه می‌دهد|شما|به|مصرف کردن|لاگ‌ها هدف این پروژه این است که به شما اجازه می‌دهد تا لاگ‌ها را مصرف کنید

from multiple places with different formats از|چندین|مکان|با|متفاوت|فرمت ها از مکان‌های مختلف با فرمت‌های متفاوت.

and ingest back the information on any kind of central database |وارد کردن|دوباره|آن|اطلاعات|در|هر|نوع|از|مرکزی|پایگاه داده و اطلاعات را به هر نوع پایگاه داده مرکزی بازخوانی کنید.

like Google Stackdriver or your own elastic search مانند|گوگل|استک‌درایور|یا|شما|اختصاصی|الاستیک|جستجو مانند Google Stackdriver یا جستجوی الاستیک خودتان.

database or MySQL. پایگاه داده||مای‌اس‌کیوال پایگاه داده یا MySQL.

In general, as a project and ecosystem, به|طور کلی|به عنوان|یک|پروژه|و|اکوسیستم به طور کلی، به عنوان یک پروژه و اکوسیستم,

we have more than 700 plugins. ما|داریم|بیشتر|از|پلاگین ما بیش از 700 پلاگین داریم.

And I think that from a company perspective, و|من|فکر می‌کنم|که|از|یک|شرکت|دیدگاه و من فکر می‌کنم که از دیدگاه شرکتی,

we maintain like 10 or 20. ما|نگه می داریم|حدود|یا ما حدود 10 یا 20 تا را نگه می‌داریم.

And all of the others are made by the community. و|همه|از|(حرف تعریف)|دیگران|هستند|ساخته شده|توسط|(حرف تعریف)|جامعه و تمام دیگران توسط جامعه ساخته شده‌اند.

Do you know Fluentd? (فعل کمکی)|تو|می‌دانی|Fluentd آیا Fluentd را می‌شناسید؟

Is anybody using Fluentd before here? آیا|کسی|استفاده می کند|Fluentd|قبل|اینجا آیا کسی قبل از اینجا از Fluentd استفاده کرده است؟

Good. خوب خوب.

We have some users. ما|داریم|چند|کاربر ما چند کاربر داریم.

MARY KOES: Awesome. ||عالی مری کُز: عالی.

Thanks. متشکرم متشکرم.

So once we get logs into the centralized logging پس|زمانی که|ما|دریافت کنیم|لاگ ها|به|آن|متمرکز|لاگ گیری پس وقتی که لاگ‌ها را به سیستم لاگ‌گذاری متمرکز وارد کنیم

API, however that happens, and many times API|هرچند|آن|اتفاق می‌افتد|و|بسیاری|بارها API، هر طور که این اتفاق بیفتد، و بسیاری از اوقات

through our logging agent, our next goal از طریق|ما|ثبت|عامل|هدف|بعدی|هدف از طریق عامل ثبت وقایع ما، هدف بعدی ما

is to get it to the right destination. است|به|رساندن|آن|به|ال|صحیح|مقصد این است که آن را به مقصد درست برسانیم.

And this is where the log router comes into place. و|این|است|جایی که||لاگ|روتر|می آید|به|کار و اینجاست که مسیریاب ثبت وقایع وارد عمل می‌شود.

So we have two kind of different flows for managing پس|ما|داریم|دو|نوع|از|متفاوت|جریان ها|برای|مدیریت بنابراین ما دو نوع جریان مختلف برای مدیریت داریم.

logs through the log router. لاگ ها|از طریق|مشخصه|لاگ|روتر لاگ‌ها از طریق روتر لاگ.

One is called log sinks, and that is basically an inclusion یکی|است|نامیده می شود|لاگ|غرق کننده ها|و|آن|است|اساساً|یک|گنجاندن یکی به نام لاگ سینک‌ها است و اساساً یک گنجاندن است.

filter, so you're going to say exactly what it is you want فیلتر|بنابراین|تو|رفتن|به|بگویی|دقیقاً|چه|آن|است|تو|می‌خواهی فیلتر، بنابراین شما دقیقاً می‌گویید که چه چیزی را می‌خواهید.

sent to these destinations. ارسال شده|به|این|مقاصد به این مقاصد ارسال کنید.

And if you don't say anything, nothing و|اگر|تو|نکنید|بگویی|چیزی|هیچ چیز و اگر چیزی نگویید، هیچ چیز.

will go to these destinations. خواهد|رفتن|به|این|مقاصد به این مقاصد خواهیم رفت.

We can send the same log to BigQuery and Pub/Sub ما|می‌توانیم|ارسال کنیم|همان|همان|لاگ|به|بیگ‌کوئری|و|| ما می‌توانیم همان لاگ را به BigQuery و Pub/Sub ارسال کنیم.

or to none of the above. یا|به|هیچکدام|از|ال|بالا یا به هیچ‌یک از موارد بالا.

On the other side, we have logs being در|طرف|دیگر|دیگر|ما|داریم|لاگ ها|در حال از طرف دیگر، ما لاگ‌هایی داریم که به

sent to Stackdriver, the logging product ارسال شده|به|استک‌درایور|محصول|لاگ‌برداری|محصول Stackdriver، محصول لاگ‌گذاری ارسال می‌شوند.

and we manage this via exclusion filter. و|ما|مدیریت می کنیم|این|از طریق|حذف|فیلتر و ما این را از طریق فیلتر حذف مدیریت می‌کنیم.

So if you do nothing, all your logs پس|اگر|تو|انجام|هیچ کاری|تمام|تو|لاگ ها بنابراین اگر هیچ کاری نکنید، تمام لاگ‌های شما

will go to Stackdriver logging. خواهد|رفتن|به|استک‌درایور|لاگ‌گذاری به لاگ‌گیری Stackdriver می‌روند.

And then if there are certain logs that you don't want to go و|سپس|اگر|وجود دارد|هستند|خاص|لاگ ها|که|شما|نمی|خواهید|به|بروند و سپس اگر لاگ‌های خاصی وجود داشته باشد که نمی‌خواهید به آنجا بروند--

there-- either because you don't want anyone in your company آنجا|یا|زیرا|تو|نمی|میخواهی|کسی|در|تو|شرکت یا به این دلیل که نمی‌خواهید کسی در شرکت شما

to have access to them or if you don't want to pay for them-- به|داشته باشید|دسترسی|به|آنها|یا|اگر|شما|نمی|خواهید|به|پرداخت|برای|آنها برای دسترسی به آنها یا اگر نمی‌خواهید برای آنها پرداخت کنید--

then you can use an exclusion filter سپس|شما|می توانید|استفاده کنید|یک|حذف|فیلتر پس می‌توانید از یک فیلتر استثنا استفاده کنید

to control what goes into Stackdriver logging. برای|کنترل کردن|چه چیزی|می رود|به|استک درایور|لاگینگ تا کنترل کنید چه چیزی به لاگ‌گیری Stackdriver می‌رود.

And that's a pretty big difference و|آن یک|یک|نسبتاً|بزرگ|تفاوت و این یک تفاوت بزرگ است

compared to many of the other cloud مقایسه شده|با|بسیاری|از|دیگر|دیگر|ابر در مقایسه با بسیاری از دیگر خدمات ابری

platform logging experiences out there. پلتفرم|ثبت|تجربیات|بیرون|آنجا تجربیات ثبت نام در پلتفرم وجود دارد.

So I'll call out two important ideas around our log router. پس|من خواهم|تماس بزنم|بیرون|دو|مهم|ایده ها|در مورد|ما|لاگ|روتر بنابراین من دو ایده مهم در مورد مسیریاب لاگ ما را مطرح می‌کنم.

One is that logs can be exported to log sinks, یکی|است|که|لاگ ها|می توانند|باشند|صادر شوند|به|لاگ|سینک ها یکی این است که لاگ‌ها می‌توانند به مخازن لاگ صادر شوند,

even if they are excluded from Stackdriver log storage. حتی|اگر|آنها|هستند|مستثنی|از|Stackdriver|لاگ|ذخیره سازی حتی اگر از ذخیره‌سازی لاگ استک‌درایور مستثنی شده باشند.

So this is something that can be a little bit پس|این|است|چیزی|که|می تواند|باشد|یک|کمی|بیشتر بنابراین این چیزی است که می‌تواند کمی

tricky to get from our documentation-- we'll work on دشوار|به|دریافت کردن|از|ما|مستندات|ما|کار|بر دریافت آن از مستندات ما دشوار است-- ما روی آن کار خواهیم کرد.

that-- but hopefully, clear now. اما|امیدوارم|امیدوارم|واضح|حالا اما امیدوارم که اکنون واضح باشد.

And then the other thing that's a really powerful tool و|سپس|آن|دیگر|چیز|که|یک|واقعاً|قدرتمند|ابزار و سپس چیز دیگری که یک ابزار بسیار قدرتمند است

is a tool called aggregated exports. است|یک|ابزار|به نام|تجمیع شده|صادرات ابزاری به نام صادرات تجمیعی است.

So most of our customers have an organization پس|بیشتر|از|ما|مشتریان|دارند|یک|سازمان بنابراین بیشتر مشتریان ما یک سازمان دارند.

with more than one project, and they با|بیشتر|از|یک|پروژه|و|آنها با بیش از یک پروژه، و آنها

want to manage logs across their entire organization. می‌خواهند|به|مدیریت|لاگ‌ها|در سراسر|آنها|کل|سازمان می‌خواهند لاگ‌ها را در سرتاسر سازمان خود مدیریت کنند.

A special use case here is security, where oftentimes, یک|خاص|مورد|استفاده|اینجا|است|امنیت|جایی که|اغلب یک مورد خاص در اینجا امنیت است، جایی که اغلب اوقات,

the security team wants to see the audit logs تیم|امنیت|می‌خواهد|ببیند|به|بررسی|گزارشات|حسابرسی|لاگ‌ها تیم امنیتی می‌خواهد لاگ‌های حسابرسی را مشاهده کند

across their entire organization. در سرتاسر|آنها|کل|سازمان در سرتاسر سازمان خود.

And so an aggregated export can be set up either at the folder و|بنابراین|یک|تجمیع شده|صادرات|می تواند|باشد|تنظیم|شود|یا|در|آن|پوشه بنابراین یک صادرات تجمیع شده می‌تواند یا در سطح پوشه

level or at the org level. سطح||در|سازمان|سازمان| یا در سطح سازمان تنظیم شود.

And it will inherit all of the stuff below it, و|آن|خواهد|به ارث می برد|تمام|از|آن|چیزها|زیر|آن و تمام موارد زیر را به ارث می‌برد,

so if audit logs are created for a new project that بنابراین|اگر|حسابرسی|گزارشات|هستند|ایجاد شده|برای|یک|جدید|پروژه|که بنابراین اگر گزارش‌های حسابرسی برای یک پروژه جدید که

didn't exist now in the organization, وجود نداشت|وجود|اکنون|در|آن|سازمان در حال حاضر در سازمان وجود ندارد، ایجاد شود,

we will go ahead and include those in the export as well. ما|خواهیم|برویم|جلوتر|و|شامل کنیم|آنها|در||صادرات|به عنوان|نیز ما ادامه خواهیم داد و آنها را نیز در صادرات شامل خواهیم کرد.

And then the last thing I'll talk و|سپس|آخرین|آخرین|چیزی|من خواهم|صحبت کنم و سپس آخرین چیزی که در مورد آن صحبت می‌کنم

about in terms of logging tools is how you در مورد|در|زمینه|از|ثبت|ابزار|است|چگونه|شما در مورد ابزارهای لاگ‌برداری این است که چگونه شما

analyze logs with Stackdriver. تجزیه و تحلیل|لاگ ها|با|استک‌درایور لاگ‌ها را با Stackdriver تحلیل می‌کنید.

And we'll get to a demo here in just a moment, و|ما|خواهیم رسید|به|یک|دمو|اینجا|در|فقط|یک|لحظه و ما به زودی به یک دمو خواهیم رسید,

but Stackdriver Logging supports both basic and advanced اما|استک‌درایور|لاگ‌گیری|پشتیبانی می‌کند|هر دو|پایه|و|پیشرفته اما Stackdriver Logging از فیلترهای پایه و پیشرفته پشتیبانی می‌کند.

filters. فیلترها فیلترها.

We also have a tool called Error Reporting ما|همچنین|داریم|یک|ابزار|به نام|| ما همچنین ابزاری به نام Error Reporting داریم

as part of the logging library toolkit به عنوان|بخشی|از|کتابخانه|ثبت|کتابخانه|ابزار که بخشی از کتابخانه ابزارهای لاگ‌برداری است.

here that will automatically go through your logs and group اینجا|که|خواهد|به طور خودکار|برود|از طریق|شما|لاگ ها|و|گروه بندی کند این ابزار به طور خودکار لاگ‌های شما را بررسی کرده و گروه‌بندی می‌کند.

like logs together, specifically looking for stack traces مانند|لاگ ها|با هم|به طور خاص|جستجو کردن|برای|پشته|ردیابی ها مانند لاگ‌ها با هم، به‌طور خاص به دنبال ردیابی‌های پشته

and issues in your code. و|مشکلات|در|شما|کد و مشکلات در کد شما.

And then we also provide the ability و|سپس|ما|همچنین|فراهم می کنیم|این|توانایی و سپس ما همچنین قابلیت ارائه می‌دهیم

to create alerts and dashboards from logs برای|ایجاد|هشدارها|و|داشبوردها|از|لاگ‌ها برای ایجاد هشدارها و داشبوردها از لاگ‌ها

by using a tool called Logs-Based Metrics, با|استفاده از|یک|ابزار|به نام|||معیارها با استفاده از ابزاری به نام معیارهای مبتنی بر لاگ.

and that pairs with Stackdriver Monitoring. و|آن|جفت می شود|با|استک درایور|مانیتورینگ و این با نظارت Stackdriver جفت می‌شود.

So that's kind of a theme that you'll پس|آن|نوع|از|یک|تم|که|شما بنابراین این نوعی تم است که شما

hear across the Stackdriver tools شنیدن|در سراسر|ابزارهای|استک‌درایور|ابزارها در ابزارهای Stackdriver خواهید شنید.

is that while you can use logging by itself است|آن|در حالی که|شما|می توانید|استفاده کنید|ثبت وقایع|به|خود این است که در حالی که می‌توانید از لاگ‌گذاری به تنهایی استفاده کنید

or monitoring by itself or APM tools یا|||||ابزارهای مدیریت عملکرد برنامه|ابزارها یا از نظارت به تنهایی یا ابزارهای APM.

by themselves, if you use multiple ones together, به|خودشان|اگر|شما|استفاده کنید|چندین|واحدها|با هم به تنهایی، اگر از چند مورد به طور همزمان استفاده کنید،

you can actually get something that is more powerful than any شما|می توانید|در واقع|بدست آورید|چیزی|که|است|بیشتر|قدرتمند|از|هر در واقع می‌توانید چیزی به دست آورید که از هر کدام از آنها به صورت فردی قدرتمندتر است.

of them individually. از|آنها|به طور فردی و حالا بخش مورد علاقه من زمان نمایش است.

And now my favorite part is demo time. و|حالا|من|مورد علاقه|بخش|است|دمو|زمان اگر بتوانیم اینجا را قطع کنیم، عالی است.

If we could cut over here, perfect. اگر|ما|می توانستیم|برشیم|اینجا|اینجا|عالی

All right, so I have a web store running on GKE. خوب|درست|بنابراین|من|دارم|یک|وب|فروشگاه|در حال اجرا|بر روی|GKE خوب، من یک فروشگاه وب دارم که بر روی GKE اجرا می‌شود.

And I can see the logs from my web store. و|من|می توانم|ببینم|(حرف تعریف)|لاگ ها|از|فروشگاه|وب|فروشگاه و می‌توانم لاگ‌های فروشگاه وب خود را ببینم.

At first glance, I can see, hey, there are quite a bit of logs, در|نگاه|اول|من|می توانم|ببینم|هی|آنجا|هستند|به اندازه|یک|مقدار|از|لاگ ها در نگاه اول، می‌توانم ببینم، هی، تعداد زیادی لاگ وجود دارد,

looks like a lot of errors. به نظر می رسد|شبیه|یک|مقدار زیادی|از|خطاها به نظر می‌رسد که خطاهای زیادی وجود دارد.

But I'm not really sure where to get اما|من|نه|واقعاً|مطمئن|کجا|به|بگیرم اما واقعاً مطمئن نیستم که از کجا شروع کنم.

started if there's an issue. شروع شد|اگر|وجود دارد|یک|مشکل اگر مشکلی وجود داشته باشد، شروع می‌شود.

SENT_CWT:AFkKFwvL=6.74 PAR_TRANS:gpt-4o-mini=4.41 fa:AFkKFwvL openai.2025-01-22 ai_request(all=326 err=0.00%) translation(all=271 err=1.11%) cwt(all=2006 err=2.19%)